Use relative path as output for File Watcher

I want to compile SASS to CSS, having a folder structure like:

project/
|-- css/
|-- sass/
   |-- styles.scss

I set it up as follows:

But the generated CSS file is in the same folder as the SASS file, why?

Thanks.

0
1 comment

Hi there,

But the generated CSS file is in the same folder as the SASS file, why?

Because that's what you have told it to do.

1. All parameters including where to place generated file need to go into the Arguments field.

Simply speaking: File Watcher just executes the command you specify. So you need to configure that command properly. Run sass --help in your terminal and see what syntax it uses for specifying the target/output file. 

Hint: It will be this part: FileName$:$FileNameWithoutExtension$.css

2. The “Output path to refresh” is for a completely different thing. The IDE will check those files for changes after File Watcher finished running. This way it can detect that generated file has been changed and this can be used in your auto deployment and alike.

0

Please sign in to leave a comment.