I am trying to set up an file watcher for .less
files, but it isn't working.
I have globally installed less via npm (npm install -g less
). And after this I set up the file watcher according to this documentation from JetBrains supprt. Here is a picture of the settings:
Everytime I will change my .less
files, it will produce the following error:
/usr/local/lib/node_modules/less/bin/lessc --no-color styles.less
lessc: ENOENT: no such file or directory, open '/Applications/PhpStorm.app/Contents/bin/styles.less'
Process finished with exit code 1
What went wrong? Any suggestions?
Using the less compiler directly in the project folder via the command line works perfectly (e.g. $ lessc styles.less styles.css
)
Using the less compiler directly in the project folder via the command -- line works perfectly (e.g.
$ lessc styles.less styles.css
)
Try doing the same then -- please try with $FileDir$
in the "Working Directory" field.