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

grunt-contrib-sass and livreload - must save twice to trigger css soft reload #533

Open
sinrise opened this issue Jan 15, 2017 · 1 comment

Comments

@sinrise
Copy link

sinrise commented Jan 15, 2017

Following the example in the documentation "Live Reload with Preprocessors", it does work but you must actually save the file twice to trigger a css "soft" reload. I think this is because Grunt can only run one task at time? If you save once, it runs the sass precompiler and quits. Then a subsequent save triggers the livereload since there aren't any changes to the sass stack. The only difference between my gruntfile.js and the example code references above is I have a scss file specified in src (in the sass directive). I have a single file: main.scss that loads all of my other scss partials via @import (pretty standard, right?). I tried using an asterisk but it totally blew up my stylesheets. It's strange the example would use *.sass as a source and a single index.css file as the dest. How is the preprocessor supposed to figure that out? I'm not sure if the two issues are related.

@moraleslevi
Copy link

I am also seeing this. Have downgraded to 0.6.0 as that seems to be the last version without this issue.

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

2 participants