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
150 stars 41 forks source link

replace twice issue #25

Closed lanyongly closed 8 years ago

lanyongly commented 8 years ago

Hi

I have a ‘replace twice’ issue about gulp-rev-collector

When I execute the build, the keys to replace will be create in rev-manifest.json

The keys is below: "22.png": "22-b0af3e9bd6.png", "active/04/0402.png": "active/04/0402-88b7b2fb22.png",

After that, use the keys to replace, and the issue will be happened.

22.png is OK. Problem is 0402.png.

I think the file name ‘0402.png’ will be replaced to ‘0402-88b7b2fb22.png’ at first time. Then, ‘0402-88b7b2fb22.png’ will be replaced to ‘0402-88b7b2fb22-b0af3e9bd6.png’ at twice.

It make the picture with wrong file name can not display on the web page.

Please fix the issue.

Best Regards!

shonny-ua commented 8 years ago

use version 1.0.4 and have fun!

lanyongly commented 8 years ago

Thanks for fix . great job