I just installed a fresh Magento 2.3.1, and I ran the following code to deploy sampledata. bin/magento sampledata:deploy
The sample data are successfully installed but styles.css
is not loading. I have checked pub/media
folder, and I can see the styles.css
does exist.
I tried the following step to fix the problem
bin/magento setup:upgrade
,bin/magento setup:di:compile
andbin/magento cache:flush
I cleared all content from folder generated, var/cache, var/page_cache, var/view_preprocessed, pub/static/ and flushed cache again.
- I give pub folder 777 permission.
but the styles.css
is still not loaded on the frontpage.
This is the first time I experienced this weird issue. any suggestions?
I'm using luma theme and Magento 2.3.1
PS:
styles-m.css and styles-l.css are loaded successfully. it's only the pub/media/styles.css not loaded.