Files
dooring/packages/dooringx-example/.umirc.ts

46 lines
1.0 KiB
TypeScript
Raw Normal View History

2021-07-10 19:35:06 +08:00
/*
* @Author: yehuozhili
* @Date: 2021-07-07 11:11:52
* @LastEditors: yehuozhili
2022-04-04 21:09:36 +08:00
* @LastEditTime: 2022-04-03 23:02:07
2021-07-12 15:32:21 +08:00
* @FilePath: \dooringx\packages\dooringx-example\.umirc.ts
2021-07-10 19:35:06 +08:00
*/
import { defineConfig } from 'umi';
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
dynamicImport: {
loading: '@/components/Loading',
},
locale: {
default: 'zh-CN',
antd: true,
baseNavigator: true,
},
routes: [
{
exact: false,
path: '/',
component: '@/layouts/index',
routes: [
{ path: '/', component: '@/pages/index' },
2021-07-17 22:15:30 +08:00
{ path: '/iframeTest', component: '@/pages/iframeTest' },
{ path: '/container', component: '@/pages/container' },
2021-07-10 19:35:06 +08:00
{ path: '/preview', component: '@/pages/preview' },
{ path: '/iframe', component: '@/pages/iframe' },
],
},
],
fastRefresh: {},
2022-01-14 09:48:18 +08:00
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
},
scripts: [
'https://unpkg.com/react@16.14.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js',
],
2021-07-10 19:35:06 +08:00
});