diff --git a/config/vite/plugins/index.ts b/config/vite/plugins/index.ts index 3d6aac0..48339c2 100644 --- a/config/vite/plugins/index.ts +++ b/config/vite/plugins/index.ts @@ -56,15 +56,14 @@ export function createVitePlugins(isBuild: boolean) { // rollup-plugin-visualizer vitePlugins.push(ConfigVisualizerConfig()); + // vite-plugin-mock + vitePlugins.push(ConfigMockPlugin(isBuild)); if (isBuild) { // vite-plugin-imagemin vitePlugins.push(ConfigImageminPlugin()); // vite-plugin-svg-icons vitePlugins.push(ConfigSvgIconsPlugin(isBuild)); - - // vite-plugin-mock - vitePlugins.push(ConfigMockPlugin(isBuild)); } return vitePlugins; } diff --git a/src/mock/index.ts b/mock/index.ts similarity index 100% rename from src/mock/index.ts rename to mock/index.ts