javascript - How do I use different grunt-contrib-less options on different files -


i want use grunt-contrib-less in grunt file, want files compressed 'yuicompress' others want keep is. how tell grunt-contrib-less use different options on different files?

you can specify files want go through process, , create different targets within config;

for example have foo.less use standard options, , bar.less use yuicompress option configure in gruntfile:

less: {   standard: {     files: {       "output/path/foo.css": "src/path/foo.less"     }   },   yui: {     options: {       yuicompress: true     },     files: {       "output/path/bar.css": "src/path/bar.less"     }   } } 

running grunt less in terminal run both targets, or can specify 1 like: grunt less:yui


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -