Skip to content

Commit d64f64b

Browse files
jonkempeddiemonge
authored andcommitted
chore(build): update gulp-useref
1 parent 5d57d00 commit d64f64b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

templates/common/root/_gulpfile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ gulp.task('client:build', ['html', 'styles'], function () {
172172
var cssFilter = $.filter('**/*.css');
173173

174174
return gulp.src(paths.views.main)
175-
.pipe($.useref.assets({searchPath: [yeoman.app, '.tmp']}))
175+
.pipe($.useref({searchPath: [yeoman.app, '.tmp']}))
176176
.pipe(jsFilter)
177177
.pipe($.ngAnnotate())
178178
.pipe($.uglify())
@@ -181,9 +181,7 @@ gulp.task('client:build', ['html', 'styles'], function () {
181181
.pipe($.minifyCss({cache: true}))
182182
.pipe(cssFilter.restore())
183183
.pipe($.rev())
184-
.pipe($.useref.restore())
185184
.pipe($.revReplace())
186-
.pipe($.useref())
187185
.pipe(gulp.dest(yeoman.dist));
188186
});
189187

templates/common/root/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"gulp-rev": "^5.0.1",
1818
"gulp-rev-replace": "^0.4.2",
1919
"gulp-uglify": "^1.2.0",
20-
"gulp-useref": "^1.2.0",
20+
"gulp-useref": "^3.0.0",
2121
"gulp-util": "^3.0.6",
2222
"gulp-watch": "^4.2.4",
2323
"run-sequence": "^1.1.1",

0 commit comments

Comments
 (0)