- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
no css in developer mode
when I switch to developer mode, no css is loaded - neither in backend nor in frontend. When I switch back to production mode everthing is fine.
I found out that it tries to load ext-all.min.css - this is the minified css file and as minification is not applied in developer mode, I guess that's the culprit?!
How can I get my styles in developer mode back, preferably without disabling the minification (which I can't anyway, it requires developer mode)?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: no css in developer mode
@christian_meyer Not sure if you already tried. I guess below commands will help.
sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/* sudo rm -Rf var/generation/* var/di/* var/cache/* sudo php bin/magento setup:static-content:deploy -f sudo php bin/magento cache:clean sudo php bin/magento cache:flush sudo chmod -R 777 var/ pub/ generated/
You need to do the same everytime you switch the mode.
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: no css in developer mode
I don't have all the directories you mentioned, I don't have:
var/pre_processed/
pub/stativ/_reqirejs/
var/generation/
var/di/
Maybe it's, but what else?
generated/
var/view_preprocessed/
It's M2.3.1 CE!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: no css in developer mode
@christian_meyer It's fine if you do not have some of the directory mentioned. Let know if things worked for you...
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: no css in developer mode
you're funny man, the only directory I have you mentioned is pub/static/frontend/* ; I don't have css in the backend?
Which directories do I have to remove? Why do I have to do it, I have another installation running, where switching to developer mode works without deleting anything.