Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

URLs starting with ./ or ../ #11

Open
ferrao opened this issue Feb 3, 2015 · 1 comment
Open

URLs starting with ./ or ../ #11

ferrao opened this issue Feb 3, 2015 · 1 comment

Comments

@ferrao
Copy link

ferrao commented Feb 3, 2015

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 ferrao closed this as completed Feb 3, 2015
@ferrao ferrao reopened this Feb 3, 2015
@dsuryadi
Copy link

agreed. same issue here!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants