mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
11 lines
288 B
TypeScript
11 lines
288 B
TypeScript
import { viteMockServe } from 'vite-plugin-mock' // https://github.com/vbenjs/vite-plugin-mock/blob/main/README.zh_CN.md
|
|
|
|
export default viteMockServe({
|
|
mockPath: 'mock',
|
|
prodEnabled: true,
|
|
injectCode: `
|
|
import { setupMockServer } from '../mock';
|
|
setupMockServer();
|
|
`,
|
|
})
|