Skip to content

Commit

Permalink
fix(useref) - rollback useref to previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadouski committed Dec 10, 2016
1 parent 8f19f12 commit c3351f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ gulp.task('html', ['inject', 'partials'], function () {
var htmlFilter = $.filter('*.html', { restore: true });
var jsFilter = $.filter('**/*.js', { restore: true });
var cssFilter = $.filter('**/*.css', { restore: true });
var assets;

return gulp.src(path.join(conf.paths.tmp, '/serve/*.html'))
.pipe($.inject(partialsInjectFile, partialsInjectOptions))
.pipe(assets = $.useref.assets())
.pipe($.rev())
.pipe(jsFilter)
.pipe($.sourcemaps.init())
Expand All @@ -52,6 +54,7 @@ gulp.task('html', ['inject', 'partials'], function () {
.pipe($.minifyCss({ processImport: false }))
.pipe($.sourcemaps.write('maps'))
.pipe(cssFilter.restore)
.pipe(assets.restore())
.pipe($.useref())
.pipe($.revReplace())
.pipe(htmlFilter)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"gulp-size": "~2.1.0",
"gulp-sourcemaps": "~1.9.1",
"gulp-uglify": "~2.0.0",
"gulp-useref": "~3.1.2",
"gulp-useref": "~1.3.0",
"gulp-util": "~3.0.6",
"gulp-zip": "^3.0.2",
"http-proxy-middleware": "~0.17.2",
Expand Down

0 comments on commit c3351f4

Please sign in to comment.