Allow custom symlinks to be defined for minification
We encountered issues with the extension with a theme from the .modman directory. Relative urls were not rewritten properly because of the filepath set to a realpath.
Thus the call to \Minify_CSS::minify was made with a currentDir looking like /absolute/path/.modman/my-theme/skin/frontend/theme/default/css and a docRoot like /absolute/path/htdocs.
Assets url were modified incorrectly and it led to urls like: n/my-theme/skin/frontend/theme/default/images/xx.png.
The best fix we found was to add an entry to the $min_symlinks array in m.php like so:
$min_symlinks["//skin/frontend"] = realpath($rootdir . "../../../.modman/my-theme/skin/frontend");
It worked pretty well, however Speedster does not allow to set it properly. Our hack was to add a sed command in the theme modman file, but it is error prone since it is dependent on the line number.
Would it be possible to add a config in the admin or a custom file to be loaded so $min_symlinks could be customized?
WOuld you rather suggest a different directory organization?
Thanks for this report. This is a tricky one. Overall the m.php should not require any interaction with Mage as this is overhead that should not be introduced into the delivery of JS/CSS assets.
So adding an admin config is not something that I would like to do at this stage. Happy to consider other solutions - feel free to add a pull request.
On a sidenote - if you have half-decent control over your server I would suggest using Speedster Advanced which does not include the m.php detour.