AutoMin-Craft icon indicating copy to clipboard operation
AutoMin-Craft copied to clipboard

Mutliple sets of JS Assets

Open jpoiri opened this issue 9 years ago • 1 comments

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.

jpoiri avatar Nov 22 '16 15:11 jpoiri

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.

SimonEast avatar Jan 03 '17 04:01 SimonEast