Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite root/uri path within CSS #7

Open
IngwiePhoenix opened this issue Apr 25, 2015 · 0 comments
Open

Rewrite root/uri path within CSS #7

IngwiePhoenix opened this issue Apr 25, 2015 · 0 comments

Comments

@IngwiePhoenix
Copy link

I am using the extract plugin in conjunction with one or two self-made loaders that turn code into plain CSS. Now I just figured out that some - if not, most - of my image resources are using root paths. For instance:

#bg {
    background-image: url("/cdn/images/bg.jpg");
}

Now I want to re-write these paths automatically, so that they are processed by image optimizers, for example.

What would be also nice is to re-write the @import statement's URL that has an URL to the font used within Bootstrap. Since I use Bower to install Bootstrap, i can't quite change that bit away...so I need a way to get it either changed to a local path or get it removed/stripped.

Any help on this one?

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

No branches or pull requests

1 participant