jamesknelson / gulp-rev-replace

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

Inline sourcemap references are replaced in CSS files #52

Open Francisc opened 8 years ago

Francisc commented 8 years ago

Hi,

Is there an easy way to prevent rev-replace replacing inline sourcemap references? This:

/*# sourceMappingURL=style.css.map */

Becomes this:

/*# sourceMappingURL=style-g623af6a92.css.map */

I'd even say this is a bug since it matches something.css inside of something.css.map, which is wrong since that's not an occurence of something.css.