Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mario343214420 opened this issue Mar 5, 2020 · 0 comments

Comments

@Mario343214420
Copy link

说明文档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) 及其版本:
  • 操作系统及其版本:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant