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

How to prevent rebase of images in css? #62

Closed
phackwer opened this issue Jun 20, 2018 · 2 comments
Closed

How to prevent rebase of images in css? #62

phackwer opened this issue Jun 20, 2018 · 2 comments

Comments

@phackwer
Copy link

I'm facing the following problem:

We have a big angular project with a lot of lazy loading, including CSS for each module. When gulp-clean-css is executed, it adds a crazy path to the images. We want to prevent it without having to edit all the CSS (it's a log) to set absolute positioning.

How can I prevent clean-css to rebase my images using gulp-clean-css?

@scniro
Copy link
Owner

scniro commented Jul 1, 2018

@phackwer thank you for the interest, but I'd recommend asking a question on StackOverflow. If you include an isolated working example you'll surely get an answer the same day. Closing for now as I'm not sure the solution lies within modifying the repo itself, but please reopen should you suspect otherwise.

@scniro scniro closed this as completed Jul 1, 2018
@rabrux
Copy link

rabrux commented Dec 17, 2018

Just set rebase option to false. I had same issue with fonts (I did not test it with images).

https://github.com/jakubpawlowicz/clean-css#constructor-options

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

3 participants