create-react-library
create-react-library copied to clipboard
All imported css is compiled as CSS module
With a default setting of
"scripts": {
"build": "microbundle-crl --no-compress --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
...
the dist/index.css contains css module files(with class names like _[name]__[local]__[hash:base64:5]) for all my imported css. These css files a not named with the 'modules.css' file name.
I have to add the --css-modules false flag, this means I cannot mix both css modules and plain css in a library I'm building.
https://github.com/transitive-bullshit/create-react-library/issues/337#issuecomment-835797711 this might be related