I have an add-on (collective.lazysizes) that includes a couple of JavaScript resources into Plone 4 resource registry using the following jsregistry.xml
file:
<?xml version="1.0"?>
<object name="portal_javascripts">
<javascript id="++resource++collective.lazysizes/ls.respimg.min.js"
cacheable="True" compression="none" cookable="True" enabled="True"
expression="" inline="False" />
<javascript id="++resource++collective.lazysizes/lazysizes.min.js"
cacheable="True" compression="none" cookable="True" enabled="True"
expression="" inline="False" />
</object>
How do I convert this into a Plone 5 bundle in registry.xml
? Do I have to join the scripts into one file? How? Do I have to add a resources
key into the bundle? What should it contain? What about more than one CSS resources?
I found the documentation complex, sometimes contradictory and not pretty clear on this.