We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for Minify 0.1.2-beta by yoleg.

    Brief Description:

    Automatically combines and minifies JS and CSS files on MODx Revolution. Fixes a small bug in the initial release. This is still in beta mode, so please test that everything is working as you want it to, and please let me know if you spot any bugs.
      • 19309
      • 49 Posts
      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?
        • 34022 ☆ 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
          • 27291
          • 5 Posts
          Hi, I would report an issue that I had with Minify with 2.1.1

          http://modxcms.com/forums/index.php/topic,65495.msg369976.html#msg369976
            • 3186 ☆ 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!
              MODX Ambassador (NL) & Professional MODX developer
              Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
              MODX e-commerce solution SimpleCart
              • 21838
              • 284 Posts
              The output / cache path should really be variable and changeable by the user through system settings to can use it with CDN / diff. servers.
                MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)