diff --git a/gulpfile.js b/gulpfile.js index 8f277c2..224207f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,6 +34,7 @@ gulp.task('copy', function(cb){ copy('fonts/*', 'dest/fonts/'); cb(); }); + // 3.压缩 js 文件;(包括合并操作, 多个js文件压缩成一个文件) gulp.task('uglifyjs', function(){ // 1. 找到文件 @@ -102,7 +103,6 @@ gulp.task('htmlmin', function () { }); - /************************************************************* * 组合任务 ************************************************************/ diff --git a/package.json b/package.json index bbdd6e3..68a3f8e 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,16 @@ "url": "https://github.com/wteam-xq/threeKingdoms.git" }, "devDependencies": { + "grunt": "~0.4.5", + "grunt-contrib-clean": "~0.6.0", + "grunt-contrib-concat": "~0.5.0", + "grunt-contrib-copy": "~0.7.0", + "grunt-contrib-cssmin": "~0.10.0", + "grunt-contrib-htmlmin": "~0.3.0", + "grunt-contrib-imagemin": "~0.9.2", + "grunt-contrib-uglify": "~0.6.0", + "grunt-strip": "~0.2.1", + "grunt-usemin": "~2.6.2", "copy": "^0.1.2", "del": "^2.0.2", "gulp-concat": "^2.6.0",