config-overrides.js 433 B

12345678910111213141516171819202122
  1. const {
  2. override,
  3. fixBabelImports,
  4. addDecoratorsLegacy,
  5. addWebpackAlias
  6. } = require('customize-cra')
  7. const path = require('path')
  8. module.exports = function override (config, env) {
  9. return config
  10. }
  11. module.exports = override(
  12. addDecoratorsLegacy(),
  13. fixBabelImports('import', {
  14. libraryName: 'antd',
  15. libraryDirectory: 'es',
  16. style: 'css'
  17. }),
  18. addWebpackAlias({
  19. '@': path.resolve(__dirname, 'src')
  20. })
  21. )