what I'am doing wrong when trying to compile the .less
files into .css
with PHPStorm File watcher ?
Here is the screenshot, (pls open THIS LINK to see the full size of the image):
I installed npm install -g less
, after getting installed NodeJS
. It works fine the compiler lessc
when using cmd.exe
- Command Line Tool in Windows OS with this command:
lessc custom.less custom.css
, but it wont do anything inside PHPStorm in Filewatcher.
Any clue what I should correct, pls ?
For those who want to configure LESS auto compiler inside their IDE PHPStorm, you can do it in that way:
cmd.exe
for Windows Environmentnpm install -g less
and wait for LESS to be downloaded and installed.And this is how your folder structure should look like for the settings on the previous picture:
.less
file, it will be automatically compiled into.css
you've defined before in File Watcher's setting dialog.To untouch the source less files, create a
template.less
like shown in picture and subload the source files there before doing styling anything.