push
This commit is contained in:
9
build/plugin/mock/mock.ts
Normal file
9
build/plugin/mock/mock.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { viteMockServe } from './index';
|
||||
|
||||
export function configMockPlugin({ enable, mockPath }: { enable: boolean; mockPath: string }) {
|
||||
return viteMockServe({
|
||||
// ignore: /.mjs$/,
|
||||
mockPath: mockPath,
|
||||
enable,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user