提交 8c96cda2 编写于 作者: H hancong03

less编译支持

上级 ca0272af
...@@ -59,7 +59,9 @@ module.exports = function( grunt ){ ...@@ -59,7 +59,9 @@ module.exports = function( grunt ){
}, },
less: { less: {
'build': { '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 ){ ...@@ -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
...@@ -55,6 +55,12 @@ ...@@ -55,6 +55,12 @@
] ]
}, },
"dest": "../output/" "dest": "../output/"
},
"styles": {
"src": {
"files": "../themes/default/less/**/*.less"
},
"dest": "../output/"
} }
}, },
"devDependencies": { "devDependencies": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册