🔥 在使用gulp-rev 和gulp-sourcemaps时遇到了问题
所以对gulp-rev中的manifest方法的options添加了一个ignore属性.
nothing much...
Install
$ npm install --save-dev gulp-rev-for-sourcemaps
API
you can goto https://www.npmjs.com/package/gulp-rev to see how to use [gulp-rev]
rev()
rev.manifest([path], [options])
path
Type: string
Default: "rev-manifest.json"
Manifest file path.
options
base
Type: string
Default: process.cwd()
Override the base
of the manifest file.
cwd
Type: string
Default: process.cwd()
Override the cwd
(current working directory) of the manifest file.
merge
Type: boolean
Default: false
Merge existing manifest file.
ignore
Type: function
Default: false
do sth to ignore files with filepath.
transformer
Type: object
Default: JSON
An object with parse
and stringify
methods. This can be used to provide a
custom transformer instead of the default JSON
for the manifest file.
Original path
Original file paths are stored at file.revOrigPath
. This could come in handy for things like rewriting references to the assets.
Asset hash
The hash of each rev'd file is stored at file.revHash
. You can use this for customizing the file renaming, or for building different manifest formats.
you can goto https://www.npmjs.com/package/gulp-rev to see how to use [gulp-rev]
Asset manifest
var gulp = sourcemaps = rev = ; gulp;
Integration
For more info on how to integrate gulp-rev-for-sourcemaps into your app, have a look at the integration guide.
License
MIT © Sindre Sorhus