javascript - grunt-contrib-less cannot find source files even though path is correct -


i'm trying grunt-contrib-less compile less file me. have following gruntfile:

less: {         files: {             "httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less"         }     }, 

the paths correct, i've triple checked files exist, yet, when run grunt following message:

running "less:files" (less) task >> destination not written because no source files provided. 

what missing gruntfile make compile less file? i'm tearing hair out because know it's simple can't figure out.

your less configuration isn't working because need put specific target within less. example

less: {    yourtarget : {         files: {             "httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less"         }    } }, 

and run using

grunt less:yourtarget

you can name target ever want because less multi-task, needs have @ least 1 target.

docs on configuring tasks targets.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -