I want to generate CSS like this:
In normal chunks used by my web application.
- main.css 1.chunk.css 2.chunk.css .... etc
And a single file
- server.css
Because I use server.css in backend
I tried to use this https://webpack.js.org/plugins/mini-css-extract-plugin/#extracting-all-css-in-a-single-file but always get one css emitted.
Finally I use a script in node to merge the css and not change the default configuration in webpack. And also use npm-run-all to integrate the script in build process in package.json