DevFactoryCH / minify

A PHP package for minifying your .css and .js.
MIT License
83 stars 32 forks source link

Breaking base64 images in CSS #51

Open Blum opened 5 years ago

Blum commented 5 years ago

Hello, first I want to say that I love this lib, it is simple, pragmatic, and does the job exactly as I want. Thank you!

But it appears that it breaks base64 encoded images, for example I have: background-image: url("data:image/png;base64,iVBORw0KG... which is transformed to background-image:url("/css/data:image/png;base64,iVBOR... which, as you guess, is not valid.

Can you help me with this?

Thanks

koemanpatrick commented 5 years ago

i can confirm this is not just with base64 images but also with normal background-images

when i put the row below in my css background-image: url("/images/test.jpg"); the result is background-image: url("/css//images/test.jpg");

Blum commented 5 years ago

So, what about this.. #52