/module-js-bundler

Magento 2 Advanced JS Bundler

Primary LanguagePHP

Magento 2 Advanced JS Bundler

Build Status Latest Stable Version Total Downloads

Installation with composer

  • Include the repository: composer require mygento/module-js-bundler

Usage

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>

Compability

The module is tested on magento version 2.3.x