Skip to content

Commit

Permalink
update for latest useref
Browse files Browse the repository at this point in the history
  • Loading branch information
bpowers committed Nov 6, 2017
1 parent 9bcc3c8 commit fa5273f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,11 @@ var imageOptimizeTask = function (src, dest) {
};

var optimizeHtmlTask = function (src, dest) {
var assets = $.useref.assets({searchPath: ['.tmp', 'app', 'dist']});

return gulp.src(src)
// Replace path for vulcanized assets
.pipe($.if('*.html', $.replace('elements/elements.html', 'elements/elements.vulcanized.html')))
.pipe(assets)
// In case you are still using useref build blocks
.pipe($.if('*.css', $.cssmin()))
.pipe(assets.restore())
.pipe($.useref())
// Minify any HTML
.pipe($.if('*.html', $.minifyHtml({
Expand Down

0 comments on commit fa5273f

Please sign in to comment.