create-react-library icon indicating copy to clipboard operation
create-react-library copied to clipboard

All imported css is compiled as CSS module

Open mklef121 opened this issue 4 years ago • 1 comments

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.

mklef121 avatar Dec 26 '20 15:12 mklef121

https://github.com/transitive-bullshit/create-react-library/issues/337#issuecomment-835797711 this might be related

sadu avatar May 09 '21 12:05 sadu