gulp-rev-collector-v-sem
same with gulp-rev-collector
but add md5 after filename, work with gulp-rev-v
ues for cdn Static files. resource?vmd5 version!!!! support index.html & index-.html
Static asset revision data collector from manifests, generated from different streams, and replace their links in html template.
Install
$ npm install --save gulp-rev-collector-v
Usage
We can use gulp-rev to cache-bust several assets and generate manifest files for them. Then using gulp-rev-collector we can collect data from several manifest files and replace links to assets in html templates.
var gulp = ;var revV = ; gulp; gulp; ... var revCollectorV = ;var minifyHTML = ; gulp;
Options
replaceReved
Type : Boolean
You set a flag, replaceReved, which will replace alredy replaced links in template's files. Default value is false
.
dirReplacements
Specifies a directories replacement set. gulp-rev creates manifest files without any info about directories. E.c. if you use dirReplacements param from Usage example, you get next replacement:
"/css/style.css" => "/dist/css/style-1d87bebe.css"
"/js/script1.js" => "/dist/script1-61e0be79.js"
"cdn/image.gif" => "//cdn8.example.dot/img/image-35c3af8134.gif"
revSuffix
Type : String
It is pattern for define reved files suffixes. Default value is '-[0-9a-f]{8,10}-?'. This is necessary in case of e.c. gulp-rename usage. If reved filenames had different from default mask.