Skip to content

Commit 37cff86

Browse files
committed
improve(build): replaced deprecated plugin gulp-ngmin with gulp-ng-annotate
1 parent 975d315 commit 37cff86

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ gulp.task('scripts:lint', function () {
149149
gulp.task('scripts', ['scripts:lint', 'scripts:cacheTpls', 'vendor:js'], function () {
150150
var arr = (config.vendor_files.js).concat(config.paths.scripts.concat(config.build + '/app/templates.js'));
151151
return gulp.src(arr)
152-
.pipe(plugins.ngmin())
152+
.pipe(plugins.ngAnnotate())
153153
.pipe(plugins.concat(pkg.name + '-' + pkg.version + '.js'))
154154
.pipe(plugins.size({ showFiles: true, title: '[JS]' }))
155155
.pipe(plugins.uglify({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"gulp-minify-css": "^0.3.5",
2929
"gulp-minify-html": "^0.1.3",
3030
"gulp-newer": "^0.3.0",
31-
"gulp-ngmin": "^0.3.0",
31+
"gulp-ng-annotate": "^0.3.3",
3232
"gulp-plumber": "^0.6.3",
3333
"gulp-rename": "^1.2.0",
3434
"gulp-rimraf": "^0.1.0",

0 commit comments

Comments
 (0)