module.exports = function(grunt){ // config grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { build1:{ src: ['src/styles1.less','src/styles2.less'], dest: 'build/styles.css' } }, csslint: { check: { src: '<%= less.build.dest %>' } } cssmin: { minmize: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */' }, files: { 'build/styles.min.css' : '<%= less.build.dest %>' } } } }); // plugin grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-csslint'); grunt.loadNpmTasks('grunt-contrib-cssmin'); // tasks grunt.registerTask('default', ['less', 'cssmin','csslint']); }

