config/webpack.config.js
@@ -378,6 +378,7 @@ }, }, ], // ['import', {libraryName: 'antd', style: true}], ], // This is a feature of `babel-loader` for webpack (not Babel itself). // It enables caching results in ./node_modules/.cache/babel-loader/ @@ -402,6 +403,7 @@ require.resolve('babel-preset-react-app/dependencies'), { helpers: true }, ], // ['import',{libraryName:'antd',style:true}], ], cacheDirectory: true, cacheCompression: isEnvProduction,