Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop ignoring changed CSS files #40

Open
rosiecakes opened this issue Apr 23, 2019 · 5 comments
Open

Stop ignoring changed CSS files #40

rosiecakes opened this issue Apr 23, 2019 · 5 comments

Comments

@rosiecakes
Copy link

Thank you for work on this tool, sorry if I'm overlooking something completely obvious. It works and reloads as expected at first, and then as I'm working and changing my css, I get this last output and have to manually refresh the browser:

[I 190423 13:11:29 handlers:92] Reload 1 waiters: /Users/shimadar/Projects/human_resources/human_resources/static/sass/project.scss
[I 190423 13:11:29 handlers:132] Browser Connected: http://127.0.0.1:8000/
[I 190423 13:11:29 handlers:79] Ignore: /Users/shimadar/Projects/human_resources/human_resources/static/css/project.css

I tried running with ./manage.py livereload human_resources/static/css to make sure it's watching that static folder but the same thing happens. (also tried with the full path)

The entire reason I'm running livereload is to reload when my static files change... I'm not sure how to tell it to stop ignoring them?

@morenoh149
Copy link

how did you get sass compiled? just trying to figure out how to get livereload and sass file support

@rosiecakes
Copy link
Author

@morenoh149 hey sorry I never saw this, you probably figured it out by now. I just have watch running in another terminal sass --watch --no-source-map project.scss:project.css

what I would expect is sass recompiles and livereload catches the change in css, but it still just ignores it.

@wvffle
Copy link

wvffle commented Mar 17, 2021

@wvffle
Copy link

wvffle commented Mar 18, 2021

I was using node for building the tailwindcss anyway so I ended up using node's livereload server as a temporary solution.

@guisaldanha
Copy link

Congratulations to the developers for the initiative

I saw that this topic has been closed for some time, I've been testing livereload since yesterday and it works well for practically all files, but not with .css extensions.

Anyone working on this?

When running livereload indicating the css files directory, the first time it ignores it and then does not display any message

py manage.py livereload website/static/css                         
[I 231201 13:39:55 server:155] Serving on http://127.0.0.1:35729
[I 231201 13:39:55 handlers:59] Start watching changes
[I 231201 13:39:55 handlers:61] Start detecting changes
[I 231201 13:40:03 handlers:132] Browser Connected: http://127.0.0.1:8000/
[I 231201 13:40:03 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\css\style.css
[I 231201 13:40:06 handlers:79] Ignore: D:\Sites-Python\website\website\static\css\style.css
[I 231201 13:41:02 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\css\style.css
[I 231201 13:41:13 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\css\style.css
[I 231201 13:41:55 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\js\script.js
[I 231201 13:41:55 handlers:132] Browser Connected: http://127.0.0.1:8000/
[I 231201 13:42:07 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\js\script.js
[I 231201 13:42:07 handlers:132] Browser Connected: http://127.0.0.1:8000/
[I 231201 13:42:13 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\css\style.css

When running livereload without indicating the css files directory, it monitors the changes but does not send the reload command to the browser

py manage.py livereload
[I 231201 13:46:01 server:155] Serving on http://127.0.0.1:35729
[I 231201 13:46:01 handlers:59] Start watching changes
[I 231201 13:46:01 handlers:61] Start detecting changes
[I 231201 13:46:03 handlers:132] Browser Connected: http://127.0.0.1:8000/
[I 231201 13:46:08 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\css\style.css
[I 231201 13:46:13 handlers:89] Reload 1 waiters: D:\Sites-Python\website\website\static\js\script.js
[I 231201 13:46:14 handlers:132] Browser Connected: http://127.0.0.1:8000/

Is this a common problem, or does it depend on the settings of other extensions / operating system / vscode version / default browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants