Closed wzshuang closed 9 years ago
You can use 'revSuffix' option to achieve the goal. try:
...
.pipe( revCollector({
replaceReved: true,
revSuffix: '-[0-9a-f]{8,10}-?(\.min)?'
...
I do not remember exactly how 'gulp-rev' handles files with suffix '.min'. Probably, You need to use revSuffix: '(.min)?-[0-9a-f]{8,10}-?'
thanks, I'll try it later.
It works well first time, but won't replace alredy replaced links.