diff --git a/gulpfile.js b/gulpfile.js index 1546909..5af08d8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -96,7 +96,7 @@ gulp.task('usemin', ['html2js'], function () { gulp.src('./app/*.html') .pipe($.usemin({ css: [$.minifyCss(), $.rev()], - js: [$.uglify(), $.rev()], + js: [$.ngmin(), $.uglify(), $.rev()], html: [$.minifyHtml({empty: true})] })) .pipe(gulp.dest(BUILD_ROOT)); diff --git a/package.json b/package.json index 65976e9..0df4e51 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "gulp": "^3.5.6", "gulp-load-plugins": "^0.3.0", "gulp-usemin": "~0.3.1", + "gulp-ngmin": "^0.1.2", "gulp-uglify": "~0.2.1", "gulp-minify-css": "~0.3.0", "gulp-minify-html": "^0.1.2",