Sterc / modx-minify

9 stars 5 forks source link

cssrewrite filter doesn't correctly rewrite relative (../) paths #6

Closed joeke closed 8 years ago

joeke commented 8 years ago

If you include a css file with relative file path includes ( For example a font: src:url('../yourwebfont.eot'); ) the source path isn't correctly rewritten to the full absolute path.

joeke commented 8 years ago

Example php files of how uri rewriting is handled in MrClay Minify script (which does work correctly): mrclay-minify-urirewrite.zip

joeke commented 8 years ago

Fixed with commit https://github.com/joeke/modx-minify/commit/b26128a56693b0e526126830581f61ac05fcde8d