sass / node-sass

:rainbow: Node.js bindings to libsass
https://npmjs.org/package/node-sass
MIT License
8.5k stars 1.33k forks source link

Additional Sub-directory and output files being created #2571

Open robbyjm opened 5 years ago

robbyjm commented 5 years ago

I'm running node-sass --output-style compressed -w src -o src\css on a directory like the one shown below.

|<-src
||<-css
||test.css
|test.scss

node-sass should just update test.css each time I save test.scss. Right now that's working fine, but there there there appears to be a side effect that creates a new css folder inside the existing folder with the updated file. So the directory now looks like

|<-src
||<-css
|||<-css(additional unwanted folder)
|||test.css(additional unwanted file)
||test.css
|test.scss

and if I save the file again, the pattern continues on and on. Each time I save the file, here is the output I get from the terminal.

Z:\Documents\Visual Studio Code\relianceplumbing> node-sass --output-style compressed -w src -o src\css

=> changed: Z:\Documents\Visual Studio Code\relianceplumbing\src\Header.scss
Rendering Complete, saving .css file...
Wrote CSS to Z:\Documents\Visual Studio Code\relianceplumbing\src\css\Header.css

=> changed: Z:\Documents\Visual Studio Code\relianceplumbing\src\css\Header.css
Rendering Complete, saving .css file...
Wrote CSS to Z:\Documents\Visual Studio Code\relianceplumbing\src\css\css\Header.css
nschonni commented 5 years ago

Can you try not nesting the output directory under the input, that usually causes problems which most applications