1

I'm running Magento 2.1.9 on nginx 1.8.1 In Stores - Configuration - Advanced - Developer under CSS Settings I've selected:

  • Merge CSS Files: yes
  • Minify CSS Filey: no

Then I'd flush my Magento cache.

php bin/magento setup:static-content:deploy

My shop is in production mode but I still see my CSS files:

<link  rel="stylesheet" type="text/css"  media="all" href="domain.etc..Smartwave/porto/en_US/mage/calendar.css" /> 
<link  rel="stylesheet" type="text/css"  media="all" href="domain.etc..Smartwave/porto/en_US/css/styles-m.css" />
<link  rel="stylesheet" type="text/css"  media="all" href="domain.etc..Smartwave/porto/en_US/bootstrap/css/bootstrap.css" />
<link  rel="stylesheet" type="text/css"  media="all" href="domain.etc..Smartwave/porto/en_US/bootstrap/css/bootstrap-theme.css" />
<link  rel="stylesheet" type="text/css"  media="all" href="domain.etc..Smartwave/porto/en_US/owl.carousel/assets/owl.carousel.css" />

19 CSS files in total. Is it possible to merge them somehow?

  • Check value dev/css/merge_css_files = 1 or not in database. – Rohan Hapani Oct 28 '17 at 4:34
  • Yes, I've got that one in my db. – Chris Oct 30 '17 at 17:43
  • Then, It is already merged. But, if dev/css/merge_css_files = 0 then it is still not merged. – Rohan Hapani Oct 30 '17 at 17:53
  • But I can see from the source code, that my css files are not merged .. that's the reason why I asked here ... – Chris Oct 30 '17 at 20:08

Your Answer

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

Browse other questions tagged or ask your own question.