gulp-asset-versioning
A plugin for gulp.js to add version after file's name by content hash.
test.html
-> test.html?v=7f499bc7
test.css
-> test.css?v=f83a98d9
Installation
npm install gulp-asset-version
Usage
var gulp = ;var assetVersion = ; gulp; gulp;
Options
assetPath: direct asset path to when using template engines.
Type: String
Default: ""
rootPath: it should be assigned when the asset's path is an absolute path.
Type: String
Default: ""
Example
before: test.css
after: test.css
before: test.html
after: test.html