Compile multiple less file and copyto a folder as multiple css file using gruntjs -


i'm trying output multiple less files under less folders build/css folder

here code i'm having have specify individual files , working fine

less: {         build: {             options: {                 yuicompress: true,                 paths: ['public/less']             },             files: {                 '.build/css/app1.css': 'public/less/app1.less',                 '.build/css/app2.css': 'public/less/app2.less'             }         }     } 

i try make more generic , tried not working

less: {         build: {             options: {                 yuicompress: true,                 paths: ['public/less']             },             files: {                   expand: true,                   cwd: 'public/css',                   src: '*.less',                   dest: '.build/css',                   ext: '*.css'             }         }     } 

this grunt versions

grunt-cli v0.1.9 grunt v0.4.2 

is there missing config need added?

i think there typo in cwd , src should array instead of string , ext has been changed well, dest incorrect.

files: {     expand: true,     cwd: 'public/less',     src: '[**/*.less]',     dest: 'build/css',     ext: '.css' } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -