Commit 63fbbc9c by Rashid Khan

Added seperate grunt task for LESS default build

parent a59f9e61
......@@ -52,6 +52,17 @@ module.exports = function (grunt) {
cwd:'<%= srcDir %>/vendor/bootstrap/less/',
src: ['bootstrap.dark.less', 'bootstrap.light.less'],
dest: '<%= tempDir %>/css/',
},
// Compile to src when not building
src:{
options: {
paths: ["<%= srcDir %>/vendor/bootstrap/less"],
yuicompress:true
},
files: {
"<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.dark.less",
"<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.light.less"
}
}
},
cssmin: {
......@@ -214,12 +225,12 @@ module.exports = function (grunt) {
grunt.initConfig(config);
// Default task.
grunt.registerTask('default', ['jshint:source','less']);
grunt.registerTask('default', ['jshint:source','less:src']);
grunt.registerTask('build', [
'jshint:source',
'clean:on_start',
'htmlmin',
'less',
'less:dist',
'cssmin',
'copy:everthing_left_in_src',
'ngmin',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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