Closed hkeide closed 10 years ago
+1, we are hitting this issue. In our use case, we refer to the revved CSS twice. The first occurrence gets the CDN prefix later down the stream, while the second occurrence is meant only for IE8 and does not get the CDN prefix. Currently, only the first occurrence is revved-replaced.
I've merged #4's tests with your global replace, so this should all work now. Thanks!
Replace all occurrences of filename, not just the first one.
The approach used is faster than using regexp and safe against filenames containing regexp meta characters.
Run this in Chrome to see a performance comparison