grunt-css-url-rewrite icon indicating copy to clipboard operation
grunt-css-url-rewrite copied to clipboard

URLs starting with ./ or ../

Open ferrao opened this issue 10 years ago • 1 comments

The task fails to rewrite URLs if the asset is not present. While processing the stylesheet the code does :

// If that didn't work, try finding the image relative to
// the current file instead.
if(!fs.existsSync(loc)) {
    loc = path.resolve(__dirname + img);
}

This not only makes it cumbersome to integrate on the grunt build system, as i have to create a number of temporary directories and copy the assets there, just to delete everything afterwords, as it creates a totally bogus location if those assets are not actually there.

ferrao avatar Feb 03 '15 11:02 ferrao

agreed. same issue here!

dsuryadi avatar Feb 17 '18 17:02 dsuryadi