Back to Top

How to enable/disable the js bundling option in Magento2

Updated 23 February 2024

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:

Searching for an experienced
Magento 2 Company ?
Find out More

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

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home