gulp-version-number icon indicating copy to clipboard operation
gulp-version-number copied to clipboard

target just one file

Open emix7 opened this issue 8 years ago • 4 comments

Hi I'm trying to have the ?v= string applied just to one of the js included in index.html, how could I do? This way produce error

const $ = gulpLoadPlugins(); const versionConfig = { 'value': '%MDS%', 'append': { 'key': 'v', 'to': ['css', 'script1.js'], }, };

emix7 avatar Nov 26 '16 07:11 emix7

@emix7 Did you figure this out? I have exact same issue

sjosen avatar Apr 11 '17 18:04 sjosen

@emix7 me too

yawlhead91 avatar Apr 26 '17 15:04 yawlhead91

Now.. you can only add the version number by types, css js or img, perhaps using "replace" instead of "append" can solve your problem.

shinate avatar Apr 27 '17 02:04 shinate

I created a pull request with the ability to do this: #11

codebykenny avatar Apr 18 '19 16:04 codebykenny