- Include the repository:
composer require mygento/module-js-bundler
Place a file js_bundler.xml in theme's etc folder
<?xml version="1.0" encoding="utf-8"?>
<bundles>
<bundle name="catalog">
<item>Magento_Catalog/js/product/list/toolbar</item>
<item>Magento_Catalog/js/price-box</item>
<item>Magento_Catalog/js/catalog-add-to-cart</item>
</bundle>
....
<bundle name="checkout">
<item>....</item>
<item>....</item>
<item>....</item>
</bundle>
</bundles>
The module is tested on magento version 2.3.x