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

URLs starting with ./ or ../ #11

@ferrao

Description

@ferrao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions