Merge and minify CSS and Javascript in Magento 2.2


#1

I have been running some performance tests on my Magento 2.2 site via gtmetrix.com and tools.pingdom.com. They have both scored my site as slow with the main reason being that I should merge and minify my javascript and css. With Magento 2.2, I no longer have a place to set this parameter in the admin panel (configuration/advanced/developer has been removed.) Does anyone know of a way to do this?

website is www.ontherocks.gallery


#2

It’s because your store is in Production Mode.

To enable the developer tab menu in the Advanced section, you will require to change your Magento Mode to DEVELOPER.

So, login to your server via SSH, navigate to the Magento 2 root directory and run this command: php bin/magento deploy:mode:set developer

Finally, clear the cache by running this command: php bin/magento cache:clean

Now, login to the Magento 2 Admin Panel, click on Stores -> Configuration -> Advanced and you will see Developer option.