Skip to content

Commit

Permalink
Merge pull request yeoman#1206 from jonkemp/upgrade-gulp-useref
Browse files Browse the repository at this point in the history
Upgrade gulp-useref version and gulp task to 3.0.
  • Loading branch information
eddiemonge committed Nov 16, 2015
2 parents 7f9c790 + 3264a3c commit b0910b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions templates/common/root/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ gulp.task('client:build', ['html', 'styles'], function () {
var cssFilter = $.filter('**/*.css');

return gulp.src(paths.views.main)
.pipe($.useref.assets({searchPath: [yeoman.app, '.tmp']}))
.pipe($.useref({searchPath: [yeoman.app, '.tmp']}))
.pipe(jsFilter)
.pipe($.ngAnnotate())
.pipe($.uglify())
Expand All @@ -181,9 +181,7 @@ gulp.task('client:build', ['html', 'styles'], function () {
.pipe($.minifyCss({cache: true}))
.pipe(cssFilter.restore())
.pipe($.rev())
.pipe($.useref.restore())
.pipe($.revReplace())
.pipe($.useref())
.pipe(gulp.dest(yeoman.dist));
});

Expand Down
2 changes: 1 addition & 1 deletion templates/common/root/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gulp-rev": "^5.0.1",
"gulp-rev-replace": "^0.4.2",
"gulp-uglify": "^1.2.0",
"gulp-useref": "^1.2.0",
"gulp-useref": "^3.0.0",
"gulp-util": "^3.0.6",
"gulp-watch": "^4.2.4",
"run-sequence": "^1.1.1",
Expand Down

0 comments on commit b0910b4

Please sign in to comment.