Created by: kellyrmilligan
updating readme with comment from #1939 (closed) . works with latest node-sass@4.5.2
Activity
Created by: kellyrmilligan
looks like the recommended solution from the issue won't let you watch files in subdirectories. the glob pattern in the cli gets expanded, and then node-sass doesn't treat it as a directory. on the other hand, if you use
src/*/**.scss
, it doesn't work as you would expect either. from what I am seeing, the way they want it to be used issrc/
. this results in thesass-graph
lib picking up all the correct files. The cli assumes you want all extensions, and its not configurable.After trying out a few different ways of calling the cli, on my setup at least, the looping happens when you change a file that is included in a lot of files, like say a
_settings.scss
file or something.I switched over to
node-sass-chokidar
and this issue just went away. I think longer term the node-sass cli should let you configure the extensions or use proper globbing patterns, as ATM its kind of broken IMO.switching to
node-sass-chokidar
fixed this issue fully for me, so not sure what to do with this PR unless we want to switch the recommendation for sass to that package instead.thoughts @Timer and anyone else?
Created by: michaelwayman
That's awesome @kellyrmilligan thanks :)
And yep, files starting with
_
do not get transpiled.I think the
not recognizing new files
is a known bug withnode-sass
. Since you already have the "Whynode-sass-chokidar
?" section, if you want to add that nsc fixes it that would be super lol<3 this PR BTW :)