From d258fc5a9fe5b16da682934fb8a2f7176e3fd47a Mon Sep 17 00:00:00 2001 From: perploug Date: Mon, 21 Oct 2013 14:29:00 +0200 Subject: [PATCH] added minification to grunt file --- src/Umbraco.Web.UI.Client/gruntFile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/gruntFile.js b/src/Umbraco.Web.UI.Client/gruntFile.js index 8e1ff2c891..8ec55a187d 100644 --- a/src/Umbraco.Web.UI.Client/gruntFile.js +++ b/src/Umbraco.Web.UI.Client/gruntFile.js @@ -12,7 +12,7 @@ module.exports = function (grunt) { grunt.registerTask('watch-test', ['jshint:dev', 'karma:unit']); //triggered from grunt dev or grunt - grunt.registerTask('build', ['clean','concat','recess:build','copy']); + grunt.registerTask('build', ['clean','concat','uglify','recess:min','copy']); //utillity tasks grunt.registerTask('docs', ['ngdocs']); @@ -190,9 +190,9 @@ module.exports = function (grunt) { uglify: { options: { - mangle: false + mangle: true }, - my_target: { + combine: { files: { '<%= distdir %>/js/umbraco.min.js': ['<%= distdir %>/js/umbraco.*.js'] } @@ -213,6 +213,7 @@ module.exports = function (grunt) { '<%= distdir %>/assets/css/<%= pkg.name %>.css': ['<%= src.less %>'] }, options: { + compile: true, compress: true } }