1 Star 8 Fork 7

Github/vben-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_createProductionServer.ts 460 Bytes
一键复制 编辑 原始数据 按行查看 历史
ANN 提交于 4年前 . chore: update readme.md
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
const modules = import.meta.globEager('./**/*.ts');
const mockModules: any[] = [];
Object.keys(modules).forEach((key) => {
if (key.includes('/_')) {
return;
}
mockModules.push(...modules[key].default);
});
/**
* Used in a production environment. Need to manually import all modules
*/
export function setupProdMockServer() {
createProdMockServer(mockModules);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/dsh-github/vue-vben-admin.git
git@gitee.com:dsh-github/vue-vben-admin.git
dsh-github
vue-vben-admin
vben-admin
main

搜索帮助