fix: 🐛 mock 服务的插件开启位置更换。更mock服务的正确路径,不放在src目录下面,放在项目跟目录

This commit is contained in:
huangwentao 2022-08-20 13:05:10 +08:00
parent cd62b926df
commit 7483835825
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}