CSS Modules, but better and usable via Rollup, Vite, Webpack, CLI, PostCSS, or JS API
MIT License
Bot releases are hidden (Show)
Published by tivac over 4 years ago
Published by tivac almost 5 years ago
Published by tivac about 5 years ago
modular-css
would require that composes
be the first declaration in a rule. This restriction has been removed due to better solutions for enforcing that behavior existing now (stylelint-order).Published by tivac over 5 years ago
true-case-path
, and making it async wasn't a guaranteed win either. So it's removed, which should solve #581 pretty neatly. Instead now there's a warning if two files are included that differ in case only. It can be disabled by setting dupewarn : false
as part of the config object.Published by tivac over 5 years ago
{css.fooga}
references would be left as-is, now they're wrapped in quotes to prevent them from causing JS errors. If you want missing classes to break things you should enable strict mode. Also no longer injecting a <script>
block just to import css if there isn't already a <script>
block defined in the module.