An more complete alternative is to usebabel-plugin-webpack-loadersbut be aware that a new webpack instance is run for each css file, this has a huge overhead. If you do not use fancy stuff, you might consider u
If you do not use fancy stuff, you might consider using babel-plugin-css-modules-transform instead. To combine all css files in a single file, give its name: { "plugins": [ [ "css-modules-transform", { "extractCss": "./dist/stylesheets/combined.css" } ] ] } To extract all files...
因为有一个自定义的生成类名的函数,所以原有的.babelrc的JSON格式已经不够了(无法表达函数),因此我们要把.babelrc的配置移到babel-loader的options里去 在完成移动后,再向其中添加babel-plugin-react-css-modules这一插件,在这个过程中...