AutoMin-Craft
AutoMin-Craft copied to clipboard
Mutliple sets of JS Assets
Hi,
I was like to know if this plugin supports have multiple sets of JS assets for example load these assets for the whole application, but these other assets just for specific templates.
Hi @jpoiri - yes, I believe the plugin supports that correctly. You can use multiple {% filter ... %} blocks, and each one will output a separate CSS/JS file. A good practice might be to have one set that is used in your site-wide layout file, and another set that is included only on specific pages where those assets are required.