From 748383582560fe21d319774f156c265424cfe34c Mon Sep 17 00:00:00 2001 From: huangwentao Date: Sat, 20 Aug 2022 13:05:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20mock=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9A=84=E6=8F=92=E4=BB=B6=E5=BC=80=E5=90=AF=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E3=80=82=E6=9B=B4mock=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9A=84=E6=AD=A3=E7=A1=AE=E8=B7=AF=E5=BE=84=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E6=94=BE=E5=9C=A8src=E7=9B=AE=E5=BD=95=E4=B8=8B=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E6=94=BE=E5=9C=A8=E9=A1=B9=E7=9B=AE=E8=B7=9F=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/vite/plugins/index.ts | 5 ++--- {src/mock => mock}/index.ts | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename {src/mock => mock}/index.ts (100%) 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