Skip to content

Minify CSS URLs #535

@surrim

Description

@surrim

minifyURLs doesn't pay attention to the following snippet:

<style>
    html {
        background-image: url("http://example.com/images/background-1.jpg");
    }
</style>

That's because html-minifier calls clean-css for inline CSS and clean-css doesn't use relateurl.
A possible solution for that would be to replace the url(...)-parts with html-minifier directly.

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