Closed dietrich-stein closed 8 years ago
For anyone searching the closed list my solution was to jump ship over to these:
smysnk/gulp-rev-all nib-health-funds/gulp-rev-delete-original
That allowed me simplify things considerably:
gulp.task('assets-revision', ['analyze', 'clean', 'assets-fonts', 'assets-other'], function() {
var revAll = new plugins.revAll({
dontRenameFile: [
/^\/index.html/g
]
});
return gulp.src([
config.dest + '/**/index.html',
config.dest + '/css/**/*.css',
config.dest + '/js/**/*.js'
])
.pipe(revAll.revision())
.pipe(revdel())
.pipe(gulp.dest(config.dest + '/'));
});
The task shown below fails to replace the not-yet-revved references in my
index.html
file. Other than that is is working perfectly. I have tried so many different approaches at this point that I'm considering abandoning this package. The only way I can get it to work is to remove my filters and allow it to write all of CSS and JS files to the root path where theindex.html
file resides. Any ideas?