mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
12 lines
290 B
JavaScript
12 lines
290 B
JavaScript
import { viteMockServe } from 'vite-plugin-mock'
|
|
|
|
export default function createMock() {
|
|
return viteMockServe({
|
|
mockPath: 'src/mock',
|
|
injectCode: `
|
|
import { setupProdMockServer } from './mockProdServer';
|
|
setupProdMockServer();
|
|
`
|
|
})
|
|
}
|