…which adds the stylesheet properly to the page, but as far as I understand while running the local server the styles are all injected and the CSS files are not actually created. Therefor the link to the stylesheet points to a 404 page and I’m left without my styles.
Is this actually possible? Would love some help please!
Thanks
Fixed this temporarily by adjusting the webpack CleanPlugin config to ignore the “styles” folder. This obviously still doesn’t inject the styles in the admin dashboard and login page, but the “admin.css” stylesheet was being enqueued properly so now the styles show up.
One drawback of this is that I have to rebuild every time I change the admin.scss file but I usually work on it only once at the start of the project (to create the custom color scheme and look for the login page).
I have exactly the same issue.
My file is enqueued in fact if I change the body colour it changes on the website but it doesn’t change in the admin login page