gulp-rev-replace icon indicating copy to clipboard operation
gulp-rev-replace copied to clipboard

I just find a new method to use gulp-rev-replace without gulp-useref

Open chshouyu opened this issue 9 years ago • 1 comments

var rev = require("gulp-rev");
var addsrc = require('gulp-add-src');
var revReplace = require("gulp-rev-replace");
gulp.task("revision", ["dist:css", "dist:js"], function(){
  return gulp.src(["dist/**/*.css", "dist/**/*.js"])
    .pipe(rev())
    .pipe(addsrc('./*.html'))
    .pipe(revReplace())
    .pipe(gulp.dest(opt.distFolder))
});

It is more simple.

chshouyu avatar Sep 11 '15 03:09 chshouyu

Thanks. If you were to create a PR with this in the README, I'd be happy to merge it.

jamesknelson avatar Sep 15 '15 02:09 jamesknelson