I am working on a React project with a custom webpack configuration, and I need to generate multiple packages with different styles. While the application remains the same in each package, I want to include a specific CSS file in each generated package. For instance, within my repository, I have various CSS files:
- src
- index.js
- index.html
- themes
- theme1
theme1.css
- theme2
theme2.css
- theme3
theme3.css
After building, the structure should look like this: (within the "build" folder)
- build
index.html
main.css // containing styles from theme2, for example
bundle.js
I am unsure how to achieve this using webpack or which plugin to use. Any assistance would be greatly appreciated. Thank you