Thanks for the extension. Works fine.
There is just one thing: It minifies my CSS as expected and it combines my JS files as expected. But it doesn’t minify the combined JS file?
Am I doing anything wrong?
-
☆ A M B ☆
- 91 Posts
No, I just haven’t gotten around to adding the JS minification yet (except for a few simple replace functions). Sorry, I should have mentioned it in the description. You can add your own replace functions by editing the "minify" function in the functions file, and of course if someone posts it on the forum, I’ll add it in!
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
-
☆ A M B ☆
- 279 Posts
Thanks for this great feature! Maybe you can work some things out because it’s not working at MODx 2.1.3 right now
Replace
$modx->documentOutput
With
$modx->resource->_output
And save the minified cache file inside something like assets/components/minify/cache/ or something similar. No trying to save the minified files into assets/templates/*** but that folder isn’t exists by default.
Keep up the good work!
The output / cache path should really be variable and changeable by the user through system settings to can use it with CDN / diff. servers.