A gulp plugin to augment gulp-rev or gulp-rev-all. It creates a file using the unrevved filename that contains (points to) the revved filename.
This is used for applications that know static files by their un-revved filenames. The application can look for the un-revved filename to find the pointer, and from there find the revved file.
Pointer files may be easier to create than manifest files. Manifest files suggest that all of your assets need to be revved at the same time, whereas the pointer file is created one-to-one with the revved file.
The pointer file is either a plain text or a JSON file. It is created by appending a suffix to the original path name, by default
You have a file
gulp-rev-all to it, producing
You then apply
js/example.js.rev.json, which contains
The application looks for
js/example.js. Instead it opens
js/example.js.rev.json, find the path to the revved file and then uses that.
var gulp = ;var uglify = ;var revAll = ;var revPointer = ;gulp;
You can pass an optional options object to the
'format': 'json''ext': '.rev.json'
format is the format of the pointer file. Valid values are
plain. Defaults to
ext is the string to append to the original filename to create the pointer file. Defaults to
.rev.json if the format is
.rev if the format is
$ npm install --save-dev gulp-rev-pointer