标签:div 文件 reac 需要 director exports ports pac babel
const { override, fixBabelImports, addDecoratorsLegacy, } = require("customize-cra"); module.exports = override( fixBabelImports("import", { //antd按需加载 // npm install react-app-rewired customize-cra babel-plugin-import -D libraryName: "antd", libraryDirectory: "es", style: "css" }), // 配置装饰器 // npm install -D @babel/plugin-proposal-decorators addDecoratorsLegacy(), );
"scripts": { "start": "react-app-rewired start", "build": "react-app-rewired build", "test": "react-app-rewired test", "eject": "react-app-rewired eject" },
标签:div 文件 reac 需要 director exports ports pac babel
原文地址:https://www.cnblogs.com/adanxiaobo/p/13212060.html