I have the following file structure:
--public_html/
- css/
- less/
- _mixins.less
- _variables.less
- _theme.less
- main.less
I am using PhpStorm with a File Watcher running LESSC from NPM.
My file watcher is as follows:
Program: /usr/local/bin/lessc
Arguments: --no-color $FileName$
Output paths to refresh: ../$FileNameWithoutExtention$.css
Files:
main.less:
@import "_variables.less";
@import "_mixins.less";
@import "_theme.less";
_theme.less contains my stylsheet and _variables.less and _mixins.less are all pretty self explanatory.
When I modify and save main.less The file main.css is created in the css folder as it should.
However, when I edit my _theme.less file, LESSC creates a _theme.css file, also.
How do I stop these extra files being created?
If you need any more info, please ask.
Arguments: --no-color $FileName$. Notice the file name variable. You would need to hardcode the root file there. Have you triedArguments: --no-color /path/to/public_html/less/main.less?Track only root filesoption is enabled (in that File Watcher settings). It works just fine here on Windows 10. See stackoverflow.com/a/41483575/783119 or stackoverflow.com/a/30481839/783119