Make sure to set the files to never expire for this to have an effect.
$ npm install --save-dev gulp-rev-format
var gulp = ;var rev = ;var revFormat = ;gulp;
Prefix appended to Hash.
Suffix appended to Hash.
Append formatted Hash just before last extension of a file.
(By default, gulp-rev and this plugin will append the formated Hash just before the first
. of a filename)
unicorn.ext1.ext2.css would become
Note with default options, output is the same with gulp-rev:
Files passed must have passed through gulp-rev, so they would have
file.revHash added (read more).
- gulp-rev's author and maintainers - For their awesome work on gulp-rev
- @lukeed - For suggesting the solution for this task
MIT © Andrei Tamas