matthiasmullie / minify

CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
https://matthiasmullie.github.io/minify/
MIT License
1.97k stars 309 forks source link

Images from plugin folder do not load #161

Open axwell opened 7 years ago

axwell commented 7 years ago

Hello, I'm having a issue images that resent in the css plugin folder. In my opinion a base path should be appended to the images urls.

Or i'm doing something wrong ?

Check this:

images_issue

matthiasmullie commented 7 years ago

Can you share some more details? Can you post both the original CSS & the minified CSS? And the paths of both of these (original & minified) CSS files.

The original CSS file should have correct references to all the images (= they should resolve fine relative to the original CSS file). When minifying, those relative paths should be converted to be relative to wherever the minified file is going to be stored to.

From your screenshot, I can not tell if your setup is correct, and what could be going wrong :)