It appears that there is no longer a "Developer" tab in the Admin Configuration/Advanced tab in version 2.2.5 production mode. Although the documentation still indicates there is, I have seen a couple of references in the blogs about its removal.

I am trying to figure out how to minify and merge my js and css files, or if I really should?


Minifying and merging js and css can improve load times and general performance of your store, so it should be enabled in production mode, but if you have to do any kind of development then you should not enable it.

In production mode the developer tab in admin store configuration in removed so you have to manually enter values in db to enable and disable them.

Following are the fields you need to set 0 or 1 in core_config_data table to disable/enable these settings;

dev/js/merge_files  - Merge Js
dev/js/minify_files - Minify Js

dev/css/merge_css_files - Merge css
dev/css/minify_files - Minify css

You can also choose to bundle js files, which would reduce the number of requests done to site to improve load times by setting following ;

dev/js/enable_js_bundling - Bundle Js Files

Do not forget to deploy your static content and flush cache using following commands after modifying any of these fields;

php bin/magento setup:static-content:deploy
chmod 777 -R var pub generated
php bin/magento cache:flush
|improve this answer|||||
  • Thanks for the input! After changing the settings, alot of things don't display properly on the website. But I did get an 'A' from google pagespeed :-/ I suspect the theme I am using can't handle the js bundling. Unfortunately, when I tried to set the fields back to 0 in core_config_data and then deploy static content, I received an error- PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /home/199035.cloudwaysapps.com/yzsaztxymz/public_html/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php:215 – DStephens Aug 31 '18 at 23:01
  • rename your pub/static and var folder and re run deploy – Vivek Kumar Aug 31 '18 at 23:03
  • Is it only possible via database?! – Black Feb 13 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.