Advanced JS Bundling for Magento 2

Installation

1. Extract the files from the package to the Magento 2 root directory (or use composer)

2. Run the following command:

bin/magento setup:upgrade

 

3. Bundling JS works only in Production Mode

bin/magento deploy:mode:set production

 

4. Enable native bundling JS

bin/magento config:set dev/js/enable_js_bundling 1

 

5. We recommend to enable minification for a better performance

bin/magento config:set dev/js/minify_files 1

 

6. Generates your bundling files each time you change your module configuration

bin/magento setup:static-content:deploy