I\'m using gulp-rev to build static files that I can set to never expire. I\'d like to replace all references to the generated files in index.html to these renamed files, but I
This helped me gulp-html-replace.
var gulp = require('gulp'); var htmlreplace = require('gulp-html-replace'); gulp.task('default', function() { gulp.src('index.html') .pipe(htmlreplace({ 'css': 'styles.min.css', 'js': 'js/bundle.min.js' })) .pipe(gulp.dest('build/')); });