• Bilal Malik

How To Enable/Disable JS/CSS Minification/Merge In Production Mode – Magento 2

In production mode developer option are not available in Admin -> Store -> Configuration -> Advanced. We can use the below Magento commands to enable/disable the JS/CSS minify/merge

Enable JS merge: php bin/magento config:set dev/js/merge_files 1

Enable JS Bundling: php bin/magento config:set dev/js/enable_js_bundling 1

Enable JS minify: php bin/magento config:set dev/js/minify_files 1

Enable CSS merge: php bin/magento config:set dev/css/merge_css_files 1

Enable CSS minify: php bin/magento config:set dev/css/minify_files 1

To disable the JS/CSS minify/merge simply change the value of the above command from 1 to 0

#css #merge #minify #magento2 #js

80 views

Recent Posts

See All

What is requireJS AMD in Magento2

Simply we can say, below format is the AMD module. define(['jquery'] , function ($) { return function () {}; }); Module Vs AMD module 1. Javascript Module Pattern (function () { this.myGlobal =

©2020 by Bilal Usean. Proudly created with Wix.com