-
-
Notifications
You must be signed in to change notification settings - Fork 384
MiniCSSExtract Plugin is not emitting any CSS #114
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
Comments
@abhsrivastava Looks like a bug 👍 |
Just ran into this problem too. As a workaround I ended up using |
Yep, right now |
Should the docs be updated? The example provided under |
This is an old post but I wanted to comment in case it helps someone. If you're using webpack-dev-server then you won't see any generated js or css file as it creates these files in memory. Try running just a normal 'webpack' command and see if the css file gets generated. |
Use writeFilesPlugin if you want to force the in-memory output to be written to disk with Webpack-dev-server |
Thanks folks! I added an extra loader to my webpack config and it worked! |
I am using mini-css-extract-plugin version 0.4.0
node version: v9.10.1
My webpack.config looks like
However when I run my project using
yarn start
and access it from the browserhttp://localhost:8080
and I go into the network tab. I don't see any CSS file. My hope was that my SCSS file will be converted into a CSS file and that CSS file will be visible in the network tab.This is a sample project which highlights the problem.
https://github.com/abhsrivastava/login-ts-react
I also posted the problem here
https://stackoverflow.com/questions/50089859/webpack-not-creating-css-file-for-scss
The text was updated successfully, but these errors were encountered: