gulp-hash-references
Replaces references (paths) to files according to the specified mapping file. Designed to be used with gulp-hash.
NOTE TO USERS UPGRADING FROM 1.x
The API of the plugin has changed significantly. Files where the references are to be updated should now be piped to the plugin, with the first argument being the path to the manifest file. See updated usage examples and API below.
Usage
var hash = ;var references = ; gulp; gulp;
Streaming
This plugin does not support streaming. Please convert streaming vinyl files to buffers first using something like vinyl-buffer.
API
references(manifestPath[, options])
manifestPath
Type: String
or String[]
Path to the manifest file, or an array of paths if using multiple manifest files.
options
Type: Object
options.dereference
Type: boolean
Default: false
If set to true, the plugin's functionality is reversed and the replaced file paths are reverted to the original path instead.