Search code examples
javascriptgruntjsgrunt-contrib-less

Grunt - Unable to compile less to css using grunt-contrib-less


I've a good feeling i am doing something extremely silly here but i am not sure what.

I am using grunt-contrib-less to compile less into css but it just doesn't seem to work at all. It shows no error or does anything and i am not sure why.

please find the JSBIN here - http://jsbin.com/hagavokige/edit?html,js

If you prefer Gist then - https://gist.github.com/ktkaushik/b3fc7aa4445e88c46bdf

I could really use some help here. I've been stuck at this one for long.

I am also using -

Using grunt v0.4.5

Using node v5.1.1

Using npm v3.312

update 1

There is NO output at all. I event added the --debug flag in the CLI but no luck.


Solution

  • Haha :)

    rename your "less" task to different name like myLess, as it is running the main less tasks, so it is creating infinite loop

    https://github.com/gruntjs/grunt-contrib-less/issues/279