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

Match unquoted and unresolved assets #37

Closed thinkswan closed 7 years ago

thinkswan commented 7 years ago

Match and replace revisioned assets even if they do not have leading slashes or quotes. Tests have been added for both cases.

An example use case is how cssnano normalizes URLs, which transforms background-image: url("./image.jpg"); into background-image: url(image.jpg);. The normalized URL is not currently matched by gulp-rev-collector because it has no leading slash and no leading quote, but it is still valid CSS.

Fixes #31

shonny-ua commented 7 years ago

Use version 1.2.0

thinkswan commented 7 years ago

@shonny-ua Version 1.2.* works well, thanks!