Question

I have enabled merging for javascript and css from my magento 2 store admin panel. But I can still see all the css coming unmerged in my view source. Javascript merge is working fine and coming merged. Any help here would be appreciated.

I have already set magento to production mode.

enter image description here

enter image description here

Was it helpful?

Solution 3

I found the issue. A Third part plugin css was creating the issue. It was not getting minified as well. Commenting it from the xml did the trick.

OTHER TIPS

My first port of call would be to delete pub/static/frontend/ and var/view_preprocessed and then clear all caches (Magento and browser cache).

Delete pub/static/ and var/view_preprocessed manually and then run content:deploy command.

It should work.

Note: Make sure you are on Production mode.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top