سؤال

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

هل كانت مفيدة؟

المحلول 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.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top