Commit aa5f040a authored by Mark Otto's avatar Mark Otto

rename gruntfile less tasks

parent 8611ed4d
...@@ -149,7 +149,7 @@ module.exports = function (grunt) { ...@@ -149,7 +149,7 @@ module.exports = function (grunt) {
}, },
less: { less: {
compileCore: { core: {
options: { options: {
strictMath: true, strictMath: true,
sourceMap: true, sourceMap: true,
...@@ -160,7 +160,7 @@ module.exports = function (grunt) { ...@@ -160,7 +160,7 @@ module.exports = function (grunt) {
src: 'less/bootstrap.less', src: 'less/bootstrap.less',
dest: 'dist/css/<%= pkg.name %>.css' dest: 'dist/css/<%= pkg.name %>.css'
}, },
compileDocs: { docs: {
options: { options: {
strictMath: true strictMath: true
}, },
...@@ -388,7 +388,7 @@ module.exports = function (grunt) { ...@@ -388,7 +388,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']); grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']);
// CSS distribution task. // CSS distribution task.
grunt.registerTask('less-compile', ['less:compileCore', 'less:compileDocs']); grunt.registerTask('less-compile', ['less:core', 'less:docs']);
grunt.registerTask('dist-css', ['less-compile', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core']); grunt.registerTask('dist-css', ['less-compile', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core']);
// Full distribution task. // Full distribution task.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment