I've embedded Minify into a module, and I'm about to post it to the forge for general use.
This can also support CSS (though CMSMS handles this already).
ScriptDeploy never works for me and won't install in the latest version.
For my implementation, I want as simple as possible. Basically, something that can minify a list of my javascript files.
What's working now is essentially Minify within CMSMS. I use the admin to build the <__script__> tag, which I then embed in the template. For instance, here's an example of a <__script__> tag:
Code: Select all
<__script__ type="text/javascript" src="/modules/Minify/min/?b=lib/jquery/js&f=jquery-1.7.2.min.js,jquery-ui-1.8.21.custom.min.js,jquery.ui.nestedSortable-1.3.4.js,jquery.json-2.3.min.js"></__script>
- Current simple functionality, no frills. No persistence, so each time you need to edit your javascripts, re-build the URL
- Create a simple admin GUI which maintains the list of javascripts (or stylesheets), and allow embedding different lists, such as {Minify package="xxxx"}
TIA
Mike