Files
SaaS-lib/build/plugin/mock/mock.ts

10 lines
231 B
TypeScript
Raw Normal View History

2024-05-15 17:29:42 +08:00
import { viteMockServe } from './index';
export function configMockPlugin({ enable, mockPath }: { enable: boolean; mockPath: string }) {
return viteMockServe({
// ignore: /.mjs$/,
mockPath: mockPath,
enable,
});
}