fix: make sure the path is correct

This commit is contained in:
masongsong 2022-08-19 16:29:38 +08:00
parent b48abed36c
commit bb165d387b

View File

@ -7,7 +7,7 @@ import { viteMockServe } from 'vite-plugin-mock';
export const ConfigMockPlugin = (isBuild: boolean) => {
return viteMockServe({
ignore: /^\_/,
mockPath: 'mock',
mockPath: 'src/mock',
localEnabled: !isBuild,
prodEnabled: false, //实际开发请关闭,会影响打包体积
// https://github.com/anncwb/vite-plugin-mock/issues/9