jamesknelson / gulp-rev-replace

Rewrite occurences of filenames which have been renamed by gulp-rev
MIT License
389 stars 62 forks source link

Not choose right rev file when same build name #39

Closed brucejcw closed 8 years ago

brucejcw commented 8 years ago

Not choose right rev file when two same build name

two htmls A and B with save build name, my result is A will use its vender-xxx.css and B's vender-xxx.js, but B will use its vender-xx.js and A's vender-xx.css,
It seems the rev-replace not working well, Can we use the same build name ?

2015-08-19 4 15 00 2015-08-19 4 15 58

brucejcw commented 8 years ago

Seems after useref, the references in html will be replaced by the build name, so revReplace cannot distinguish these two reference both named 'vender.css', so it choose one of the rev files: [vender-xxx1.css, vender.xxx2.css] Anyway to fix it except give each vender a specific name?