mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
fix: make sure the path is correct
This commit is contained in:
parent
b48abed36c
commit
bb165d387b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user