Skip to content

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

@Mario343214420

Description

@Mario343214420

说明文档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) 及其版本:
  • 操作系统及其版本:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions