Reputation: 185
I am trying to setup a file watcher for scss files which is working on files with a filename not starting with _
.
But if I have a file named _file_name.scss
the output of any macros that include the filename will be file.name.scss
.
The first _
is removed and following ones are replaced by .
.
Even though in the insert macros
selection tool I can see that the output when you select a macro is correct.
Like $FilePathRelativeToProjectRoot$
will display mypath/_file_name.scss
in the selection tool but then my command from this file watcher will output mypath/file.name.scss
.
Am I missing a parameter here ?
Upvotes: 2
Views: 367
Reputation: 93868
For me, existing file names are not changed when using similar file watcher. But files with names starting the _
are not prettified, the main .scss
that includes them is processed instead.
To avoid this, try adding COMPILE_PARTIAL=true
variable 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
Upvotes: 4