I am trying to follow the manual here: https://webpack.js.org/plugins/mini-css-extract-plugin/
My config is exactly as stated there. My goal is to produce a single CSS file which is a bundle of multiple CSS files that are located in the src/css/
folder.
When I run the build, I don't receive any CSS files in the dist/
folder.
I think I am missing how to actually include CSS files into the build. Those CSS files are not referenced anywhere in my code, they are injected dynamically by JavaScript that appends a <link>
tag into the document.
How do I point webpack to pick up and bundle the CSS files when they are not explicitly referenced in my code?