ant-design/antd-mobile-samples

customize-cra 引用后相关更新说明文档中内容,是否与此demo不符

Mario343214420 opened this issue · 0 comments

说明文档config-overrides.js

+ const { override, fixBabelImports } = require('customize-cra');

- module.exports = function override(config, env) {
-   // do stuff with the webpack config...
-   return config;
- };
+ module.exports = override(
+   fixBabelImports('import', {
+     libraryName: 'antd-mobile',
+     style: 'css',
+   }),
+ );

demo中config-overrides.js
是否需统一

  • antd-mobile 版本:
  • 浏览器 (或标明是 react-native) 及其版本:
  • 操作系统及其版本: