gulp-rev-replace
gulp-rev-replace copied to clipboard
Rewrite occurences of filenames which have been renamed by gulp-rev
the rev-manifest.json file:  the generating file, replacement not work: 
Hi, `options.replaceInExtensions Type: Array Default: ['.js', '.css', '.html', '.hbs']` For this, would this option support `.json` and `.xml`? I add it to my `gulp-rev` code, every types list on the...
Now rev-replace can't replace URI-encoded file name including non-ascii characters such that: %e6%97%a5%e6%9c%ac%e8%aa%9e.jpg
gulp-rev-replace doesn't seem to be accepting .json files, even when adding 'json' to the replaceInExtensions options. This is to support versioning of pwa manifest.json files. Paths check out (via console)...
Hi all. As you've probably noticed, I'm not taking as much care of this project as I could be. I don't use this project in any of my own builds...
gulp task: `gulp.task('rev-update-references', function(){ const manifest = gulp.src(getBuildRoot() + '/' + config.tasks.production.manifest) return gulp.src(path.join(getBuildRoot() + '/**/**.{css,js,json}')) .pipe(revReplace({manifest: manifest})) .pipe(gulp.dest(getBuildRoot())) })` scss: `@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight:...
``` // Rewrite references to file names which have been renamed by gulp-rev-all gulp.task('fingerprintReplace', ['fingerprintGenerate'], () => { if (config.production) { // We only need file name without directories const...
Now rev-replace can't replace URI-encoded file name including non-ascii characters such that: %e6%97%a5%e6%9c%ac%e8%aa%9e.jpg
I think that should provide file information to modifyUnreved and modifyReved method. https://github.com/jamesknelson/gulp-rev-replace/blob/master/index.js#L82 if the css image use the relative path, may have the same url string, so provide the...
Adds a 'replacer' options which can be assigned a custom function that is used to replace unreved references with the reved ones, instead of the default `contents.split(unreved).join(reved)`. This could also...