-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEV env with webpack-dev-server not emitting css #1844
Comments
+1 My styles seem to be working after enabling |
Nevermind, I only had |
If you don't extract css it's included in the JS bundle that's why you will notice a flicker since JS takes a while. With extract css, it will be loaded as normal css on the page. |
Should |
I also don't think that |
I believe the original issue has been resolved? Closing due to inactivity and for the fact that the èxtract_css option will be removed in Webpacker 6 and CSS will be extracted by default. |
After upgrading to 4.0.0.rc.2, my app now doesn't emit css in dev env with
webpack-dev-server
running so my pages are missing all styling. I found #1625 to be causing this behavior.I changed the default
extract_css
totrue
inwebpacker.yml
and now it works, but I'm not quite sure if it's recommended to emit css in dev runningwebpack-dev-server
?Otherwise if we don't emit css, I assumed it will do CSSinJS, but then I'm not sure why my site isn't loading any css.
Here's my
application.html.erb
The text was updated successfully, but these errors were encountered: