Ant-design-pro still does not use babel-plugin-import to introduce the style.

the react I created with official scaffolding and then configured with package.json still doesn"t introduce separate ant-design-pro component styles

"babel": {
    "presets": [
      "react-app"
    ],
    "plugins": [
      [
        "import",
        {
          "libraryName": "ant-design-pro",
          "libraryDirectory": "lib",
          "style": "css"
        },
        "ant-design-pro"
      ],
      [
        "import",
        {
          "libraryName": "antd",
          "libraryDirectory": "es",
          "style": "css"
        },
        "ant"
      ]
    ]
  }

antd has demand loading, but ant-design-pro does not load on demand

clipboard.png

Aug.06,2021

feels that Ali's things have always been stupid, and I can't solve the search


. So am I

.
Menu