PHPStorm SCSS file watcher is compiling the wrong file
The file watcher for SCSS files has been working correctly but today, suddenly, it's become stuck compile one specific SCSS file, no matter which SCSS file I update.
I update file-A.scss and the output windows says that file-G.SCSS has been compiled.
I update file-B.scss and the output windows says that file-G.SCSS has been compiled.
And so on. I've restarted the app, I've turned the file watcher off and then on again. Keeps happening, the same file gets compiled every time.
Please sign in to leave a comment.
what do your files look like? When you are updating partials (files that are included in the other, main scss file), the resultant
.cssis only created for 'main' file - no separate.cssfiles for partials are generated, changes are merged into the main.cssThis seems rather presumptive. How can this be disabled so that the partial file is also/only compiled?
I have an scss file "B.scss" that needs to be compiled to css, but is also imported into another scss file "A.scss". Right now when I change B.scss, PhpStorm is only compiling A.scss but I need the B.css output.
If you like to produce
.cssfor files prefixed with underscore, you need to addCOMPILE_PARTIAL=truevariable to your file watcher settings:Also, make sure that Track only root files is off.
see the comments in https://youtrack.jetbrains.com/issue/WEB-13459