Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit a3b7af2

Browse files
committed
chore(gulp): change deprecated gulp task
1 parent 6fefd97 commit a3b7af2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var gulp = require('gulp');
2-
var ngmin = require('gulp-ngmin');
2+
var ngAnnotate = require('gulp-ng-annotate');
33
var rename = require('gulp-rename');
44
var uglify = require('gulp-uglify');
55

@@ -9,7 +9,7 @@ var paths = {
99

1010
gulp.task('default', function() {
1111
return gulp.src(paths.scripts)
12-
.pipe(ngmin())
12+
.pipe(ngAnnotate())
1313
.pipe(rename({suffix: '.min'}))
1414
.pipe(uglify({mangle: false}))
1515
.pipe(gulp.dest('.'));

off-canvas.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"karma-firefox-launcher": "~0.1.3",
3232
"karma-junit-reporter": "~0.2.1",
3333
"gulp": "~3.5.6",
34-
"gulp-ngmin": "~0.1.2",
3534
"gulp-rename": "~1.2.0",
36-
"gulp-uglify": "~0.2.1"
35+
"gulp-uglify": "~0.2.1",
36+
"gulp-ng-annotate": "~0.3.0"
3737
}
3838
}

0 commit comments

Comments
 (0)