From 1fada5dd0be2574da5336bbce9ff336d46059e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 10 Feb 2014 18:05:52 +0100 Subject: [PATCH] build/grunt script fixes --- tasks/build_task.js | 2 +- tasks/options/copy.js | 2 +- tasks/options/uglify.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/build_task.js b/tasks/build_task.js index 1da41026714..272305da139 100644 --- a/tasks/build_task.js +++ b/tasks/build_task.js @@ -4,7 +4,7 @@ module.exports = function(grunt) { grunt.registerTask('build', [ 'jshint:source', 'clean:on_start', - 'less:dist', + 'less:src', 'copy:everything_but_less_to_temp', 'htmlmin:build', 'cssmin:build', diff --git a/tasks/options/copy.js b/tasks/options/copy.js index 2abb6fdf01c..a76466c5417 100644 --- a/tasks/options/copy.js +++ b/tasks/options/copy.js @@ -4,7 +4,7 @@ module.exports = function(config) { everything_but_less_to_temp: { cwd: '<%= srcDir %>', expand: true, - src: ['**/*', '!**/*.less'], + src: ['**/*', '!**/*.less', '!config.js'], dest: '<%= tempDir %>' } }; diff --git a/tasks/options/uglify.js b/tasks/options/uglify.js index cea879980b5..1ca15b06957 100644 --- a/tasks/options/uglify.js +++ b/tasks/options/uglify.js @@ -2,7 +2,7 @@ module.exports = function(config) { return { dest: { expand: true, - src: ['**/*.js', '!config.js', '!app/dashboards/*.js', '!app/dashboards/**/*.js',], + src: ['**/*.js', '!config.sample.js', '!app/dashboards/*.js', '!app/dashboards/**/*.js',], dest: '<%= destDir %>', cwd: '<%= destDir %>', options: {