shinate / gulp-version-number

Add version number to js/css/image in HTML
MIT License
24 stars 19 forks source link

target just one file #2

Open emix7 opened 7 years ago

emix7 commented 7 years ago

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'], }, };

sjosen commented 7 years ago

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

yawlhead91 commented 7 years ago

@emix7 me too

shinate commented 7 years ago

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

codebykenny commented 5 years ago

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