通用评论

config-overrides.js 243B

123456
  1. const { injectBabelPlugin } = require('react-app-rewired');
  2. module.exports = function override(config, env) {
  3. config = injectBabelPlugin(['import', { libraryName: 'antd', libraryDirectory: 'es', style: 'css' }], config);
  4. return config;
  5. };