Less watcher suddenly stopped working

 

It used to work perfectly. Now it still runs the command (the .css file does appear) but the output file is always empty.

The config is:

And the "Argument" field is:

--source-map=$FileNameWithoutExtension$.css.map --no-color $FileName$

in case you are wondering.

 

The console outputs:

cmd.exe /D /C call C:/Users/kriss/AppData/Roaming/npm/lessc.cmd --source-map=temp.css.map --no-color temp.less

Process finished with exit code 0

which should be fine. It clearly is not though.

 

The temp.less file is a root file with no imports and syntax errors (one simple css rule).

 

On the command line lessc seems to be working fine. Execution of:

lessc --source-map=temp.css.map --no-color temp.less temp.css

producess the temp.css file with contents.

 

0

I found the cause. It seems that all of a sudden the less command is not producting any standard output. The --source-map parameter seems to be the culprit. Instead of removing it I added $FileNameWithoutExtension$.css at the end of Argument and unchecked Create output file from stdout.

0

请先登录再写评论。