mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-10 08:02:48 +00:00
11 lines
363 B
JavaScript
11 lines
363 B
JavaScript
const { Bootstrap } = require('@midwayjs/bootstrap');
|
|
|
|
// 显式以组件方式引入用户代码
|
|
Bootstrap.configure({
|
|
// 这里引用的是编译后的入口,本地开发不走这个文件
|
|
// eslint-disable-next-line node/no-unpublished-require
|
|
imports: require('./dist/index'),
|
|
// 禁用依赖注入的目录扫描
|
|
moduleDetector: false,
|
|
}).run();
|