-
Notifications
You must be signed in to change notification settings - Fork 1.3k
node-sass is compiling the directory recursively even without the flag #2504
Comments
Even tried this with same result: |
AFAIK, |
Don't think |
Are there any dependencies? For example, is Can you produce a quick repository to reproduce it? (Btw. please copy text output and not images if possible) |
Hey. I'm no longer developing with this ecosystem :-( . |
No worries, we have enough watcher bugs around :) Thank you. Everybody: please have a look at Module - Watcher and see if there is one that is a duplicate to this one. Test cases welcome! |
How to execute
node-sass --watch ./src/main/css --output ./src/main/css
where ./src/main/css can be any directory you want that has sass files.
Result
Watches and compiles all the .scss in the directory and it's sub-directories, i.e. recursively.
Expected
Should watch for changes and only compile the .scss files in the directory, not the ones present in the sub-directories, i.e. non-recursively / without recursion.
To give more details as to how and why:
My app follows the BEM methodology with sass, and because of that I have a styles folder structure like this (screen from vscode IDE). I use node-sass CLI with the IDE:
I need node-sass to watch and compile only the files in the /css folder (app.scss and chartist.scss).
Right now it's compiling also the settings.scss, normalization.scss and all the rest of the .scss files that don't start with the
_
When reporting any bug, YOU MUST PROVIDE THE FOLLOWING INFORMATION
or your issue will be closed without discussion
-->
npm -v
): 5.6.0node -v
): v8.11.4node -p process.versions
):node -p process.platform
): win32node -p process.arch
): x64node -p "require('node-sass').info"
):npm ls node-sass
): node-sass@4.9.3The text was updated successfully, but these errors were encountered: