I'm currently creating components library with Webpack. I wan't my components library provides:
- React components:
It can be used as reusable React components that contain bundled javascript and CSS module - CSS components:
It can be used in plain HTML nevertheless, via importing bundled CSS file
I'm using Webpack as build tools. Is that possible to use style-loader and MiniExtractCssPlugin side by side in webpack bundling? So that I can make every component's style is embeded in javascript bundle, and also providing bundled CSS file. Thanks!