46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
/*
|
|
* @Author: yehuozhili
|
|
* @Date: 2021-07-07 11:11:52
|
|
* @LastEditors: yehuozhili
|
|
* @LastEditTime: 2022-01-13 15:42:40
|
|
* @FilePath: \dooringx\packages\dooringx-example\.umirc.ts
|
|
*/
|
|
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' },
|
|
{ path: '/iframeTest', component: '@/pages/iframeTest' },
|
|
{ path: '/container', component: '@/pages/container' },
|
|
{ path: '/preview', component: '@/pages/preview' },
|
|
{ path: '/iframe', component: '@/pages/iframe' },
|
|
],
|
|
},
|
|
],
|
|
fastRefresh: {},
|
|
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',
|
|
],
|
|
});
|