File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,38 @@ export default defineConfig({
4747
4848 // umi.js
4949 singular : true ,
50+
5051 fastRefresh : { } ,
52+
5153 mfsu : { } ,
5254
55+ externals : {
56+ react : 'window.React' ,
57+ 'react-dom' : 'ReactDOM' ,
58+ antd : 'antd' ,
59+ dayjs : 'dayjs' ,
60+ } ,
61+
62+ styles :
63+ process . env . NODE_ENV === 'development'
64+ ? [ '//unpkg.com/antd@4.x/dist/antd.css' ]
65+ : [ '//unpkg.com/antd@4.x/dist/antd.min.css' ] ,
66+
67+ scripts :
68+ process . env . NODE_ENV === 'development'
69+ ? [
70+ '//unpkg.com/react@17.x/umd/react.development.js' ,
71+ '//unpkg.com/react-dom@17.x/umd/react-dom.development.js' ,
72+ '//unpkg.com/antd@4.x/dist/antd.js' ,
73+ '//unpkg.com/dayjs@1.x/dayjs.min.js' ,
74+ ]
75+ : [
76+ '//unpkg.com/react@17.x/umd/react.production.min.js' ,
77+ '//unpkg.com/react-dom@17.x/umd/react-dom.production.min.js' ,
78+ '//unpkg.com/antd@4.x/dist/antd.min.js' ,
79+ '//unpkg.com/dayjs@1.x/dayjs.min.js' ,
80+ ] ,
81+
5382 nodeModulesTransform : {
5483 type : 'none' ,
5584 } ,
You can’t perform that action at this time.
0 commit comments