What is js bundling?
Javascript bundling is a technique that groups separate files in order to reduce the number of HTTP requests that are required to load a page. Bundling is commonly used in today’s “module-based” development where some functionalities are basically split into Modules.
From Admin Panel:
In Admin Panel go to
Stores -> Configuration -> Advanced -> Developer -> Javascript Settings ->Enable Javascript Bundling
option and here you can enable or disable it.
From Terminal:
We have to run the following command
For enable:
php bin/magento config:set dev/js/enable_js_bundling 1
php bin/magento cache:clean
For disable:
php bin/magento config:set dev/js/enable_js_bundling 0
php bin/magento cache:clean
Thanks
Be the first to comment.