From ccd92fca5e52873053f2960a7783edaee326c735 Mon Sep 17 00:00:00 2001 From: "Mr. Hyde" Date: Sun, 24 May 2015 21:10:51 +0200 Subject: [PATCH] - [grunt] remove uncompressed js files from build --- gruntfile.coffee | 3 ++- tasks/grunt-contrib-clean.coffee | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gruntfile.coffee b/gruntfile.coffee index 2b95ccba..833c93a2 100644 --- a/gruntfile.coffee +++ b/gruntfile.coffee @@ -128,13 +128,14 @@ module.exports = (grunt) -> 'autoprefixer:build' 'uncss:build' 'csso:build' - 'clean:styles' 'processhtml:build' 'shell' 'uglify:build' 'htmlmin:build' 'responsive_images:thumbnails' 'tinypng:build' + 'clean:styles' + 'clean:scripts' 'cacheBust:build' 'size_report:build' ] diff --git a/tasks/grunt-contrib-clean.coffee b/tasks/grunt-contrib-clean.coffee index 91cd69d3..4a3a2a99 100644 --- a/tasks/grunt-contrib-clean.coffee +++ b/tasks/grunt-contrib-clean.coffee @@ -15,6 +15,12 @@ module.exports = -> src: [ '<%= path.temp.root %>/*' ] + scripts: + files: + src: [ + '<%= path.build.scripts %>/*' + '!<%= file.build.script.min %>' + ] styles: files: src: [