You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is somehow a duplicate. This may add about 70 kB bundle size when there is 1000 CSS Module classes in the project, which may be even larger in complex project. So I'm thinking if it's possible to just remove the original classnames in bundle.
Hi,
First of all, thanks for this fantastic lib, in our project we're heavily using babel-plugin-css-modules-transform, which is built on top of this lib.
Actually when setting
camelCase=true
, I found in bundled JS, camelCase classnames are generated, but the original classnames are not removed, e.g.:This is somehow a duplicate. This may add about 70 kB bundle size when there is 1000 CSS Module classes in the project, which may be even larger in complex project. So I'm thinking if it's possible to just remove the original classnames in bundle.
Just found css-loader supported
camelCase=only|dashesOnly
(https://github.com/webpack-contrib/css-loader#camelcase) in this ticket webpack-contrib/css-loader#440 and PR webpack-contrib/css-loader#445Is it possible for css-modules-require-hook to support similar options?
Thanks.
The text was updated successfully, but these errors were encountered: