Advanced JS Bundling Magento 2
For Magento 2


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

  1. Run the following command: 

bin/magento setup:upgrade

  1. Bundling JS works only in Production Mode

bin/magento deploy:mode:set production

  1. Enable native bundling JS

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

  1. We recommend to enable minification for a better performance

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

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

bin/magento setup:static-content:deploy