diff --git a/build/Gruntfile.js b/build/Gruntfile.js index 13757cf44f7306334f37a1714a5530a6904ae60f..7255af8e0e04a8a7edad05726e9c4588de11f8f1 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -59,7 +59,9 @@ module.exports = function( grunt ){ }, less: { 'build': { - + files: { + '<%= meta.pkg.projectInfo.styles.dest %><%= meta.pkg.project %>.css': '<%= meta.pkg.projectInfo.styles.src.files %>' + } } } @@ -74,6 +76,6 @@ module.exports = function( grunt ){ } } - grunt.registerTask('default', ['concat', 'uglify']); + grunt.registerTask('default', ['concat', 'uglify', 'less']); }; \ No newline at end of file diff --git a/build/package.json b/build/package.json index ce1ac01b02a96f89924a28a566cb9fa2103c5c9e..fde2bdfaa7e02ef4e4170123c057be0485fe61f3 100644 --- a/build/package.json +++ b/build/package.json @@ -55,6 +55,12 @@ ] }, "dest": "../output/" + }, + "styles": { + "src": { + "files": "../themes/default/less/**/*.less" + }, + "dest": "../output/" } }, "devDependencies": {