-
Notifications
You must be signed in to change notification settings - Fork 356
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-sass and grunt-contrib-watch seems to not work together as expected #515
Comments
@adrienrn We're seeing this too (... I think.) But with LESS . And only sometimes. |
Slightly related, for the life of me I could not get
I was able to get something sort of running by having all watch tasks interrupt eachother and have livereload at the top level. But this caused a double trigger on the css change and livereload, and seemed awfully sloppy. No other combination of
With this setup the on watch event is not triggered until the sass task completes, thus there is no "running" watch task and the livereload is able to occur. To be honest I don't see much of a way around this, it seems like the queue / runner is treating additional taskrun's as all being the same, whereas I think that only subsequent taskrun's from the same target should not be ran (unless interrupt is set to true). It seems like either the subsequent My final working versions:
|
Same here... solution? |
December of 2020 and I'm having a very similar issue. I have looked everywhere, did somebody came with a solution? |
February of 2022 now, still same issue. |
I use grunt-sass and grunt-watch to compile and minify my code
Problem:
When I modify one scss file, the
sass:compile
kicks in,grunt-contrib-watch
detects changes on all javascript files and never run thecssmin:minify
.I thought
grunt-contrib-watch
was the cause (using spawn to false like instructed in #509 kind of fix the issue).However switching for
grunt-sass
togrunt-contrib-sass
fixes the issue.Does anyone have encountered the same issue?
For information, my package.json looks like this:
The text was updated successfully, but these errors were encountered: