Grunt批量编译less

 module.exports = function (grunt) {
     grunt.initConfig({
         less: {
             main: {
                 expand: true,
                 src: ['less/*.less'],
                 dest: 'dist',
                 ext: '.css'
             },
             dev: {
                 options: {
                     compress: true,
                     yuicompress:false
                 }
             }
         },
     });

     grunt.loadNpmTasks('grunt-contrib-less');
     grunt.registerTask('default',['less']);
 }
05-11 22:59