From 311edd503b648ae3f8410985408aeecf6e611fe8 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 25 Aug 2017 15:47:26 +0800 Subject: [PATCH] add --- Gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b5304aafc..6fcfad326 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -234,7 +234,7 @@ module.exports = function (grunt) { } }, - uglify: { + jsmin: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' }, @@ -286,5 +286,6 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-cssmin'); - grunt.registerTask('default', ['less', 'concat', 'uglify', 'cssmin', 'watch']); + grunt.registerTask('default', ['less', 'concat', 'watch']); + grunt.registerTask('uglify', ['less', 'concat', 'jsmin', 'cssmin']); }; \ No newline at end of file