2023-03-27 18:01:46 +08:00

7 lines
256 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',
injectCode: 'import { setupMockServer } from \'../mock\';setupMockServer();',
})