Closed stefanfrede closed 4 years ago
I found out you have "sideEffects": false
in your package.json. That's blocking mini-css-extract-plugin from working. I think I'll add a note about this to the book.
Another note, you should apply webpack-plugin-serve/client
only for the development target as the entry isn't needed in production.
👍 Thanks!
Another note, you should apply webpack-plugin-serve/client only for the development target as the entry isn't needed in production.
Please change it in Composing Configuration. I would have created a PR but got scared off by the Leanpub comments 😳
@stefanfrede Yeah, will do. Thanks!
After I setup my config according to how it is describe in the chapter separating CSS I relaized that the code is not working.
More specific
npm run build
is not separating my CSS (npm start
works just fine).This is the console output:
Here is a link to my repo: https://github.com/stefanfrede/webpack-boilerplate/tree/refactor-webpack-boilerplate.