Files
nl-mall-view/apps/antd-view/src/main.ts
2024-05-24 23:11:03 +08:00

23 lines
505 B
TypeScript

import { setupPreference } from '@vben/preference';
import { overridesPreference } from './preference';
/**
* 应用初始化完成之后再进行页面加载渲染
*/
async function initApplication() {
const namespace = 'antd-view';
const env = import.meta.env.PROD ? 'prod' : 'dev';
// app偏好设置初始化
await setupPreference({
env,
namespace,
overrides: overridesPreference,
});
import('./bootstrap').then((m) => m.bootstrap(namespace, env));
}
initApplication();