benjamin-vauchel / SmartOptimizer

This extra is a MODx version of SmartOptimizer by Ali Farhadi (http://farhadi.ir/works/smartoptimizer), a PHP library that enhances your website performance by optimizing the front end using techniques such as minifying, compression, caching, concatenation and embedding.
5 stars 0 forks source link

@import paths in CSS not being handled correctly #2

Closed MokoJumbie closed 12 years ago

MokoJumbie commented 12 years ago

I'm trying to get SiteOptimizer to work with https://github.com/stubbornella/oocss/

I've unpacked that distribution to an'oocss' directory in my web root and am calling SmartOptimizer thus:

<link rel="stylesheet" href="[[!SmartOptimizer? &files=`oocss/all.css`]]" media="all">

and while the initial file is being linked to correctly, the paths of the @import statements it contains are being re-written as absolute server paths:

@import "/Users/name/projects/sitename/oocss/core/core.css"; @import "/Users/name/projects/sitename/oocss/plugins/plugins.css";

It appears this is not unique to my situation. It's been reported at: http://forums.modx.com/thread/72679/support-comments-for-smartoptimizer

MokoJumbie commented 12 years ago

Gah. This got duplicated while editing to fix display of HTML code. Going to delete this and update original.