shonny-ua / gulp-rev-collector

Static asset revision data collector from manifests, with was generated from different streams and replace they's links in html template.
MIT License
149 stars 41 forks source link

I want to "?v=" So, how do i do it? #39

Open fhvknb opened 7 years ago

fhvknb commented 7 years ago

help me! thinks

kang-lyk commented 7 years ago
.pipe(revCollector({
            replaceReved: true,
            dirReplacements: {
                '@static/': function(manifest_value) {
                    return `${STATIC_URL}/${manifest_value}?v=${new Date()*1}`
                }
            }
        }))