mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
fix: 🐛 mock 服务的插件开启位置更换。更mock服务的正确路径,不放在src目录下面,放在项目跟目录
This commit is contained in:
parent
cd62b926df
commit
7483835825
@ -56,15 +56,14 @@ export function createVitePlugins(isBuild: boolean) {
|
|||||||
|
|
||||||
// rollup-plugin-visualizer
|
// rollup-plugin-visualizer
|
||||||
vitePlugins.push(ConfigVisualizerConfig());
|
vitePlugins.push(ConfigVisualizerConfig());
|
||||||
|
// vite-plugin-mock
|
||||||
|
vitePlugins.push(ConfigMockPlugin(isBuild));
|
||||||
if (isBuild) {
|
if (isBuild) {
|
||||||
// vite-plugin-imagemin
|
// vite-plugin-imagemin
|
||||||
vitePlugins.push(ConfigImageminPlugin());
|
vitePlugins.push(ConfigImageminPlugin());
|
||||||
|
|
||||||
// vite-plugin-svg-icons
|
// vite-plugin-svg-icons
|
||||||
vitePlugins.push(ConfigSvgIconsPlugin(isBuild));
|
vitePlugins.push(ConfigSvgIconsPlugin(isBuild));
|
||||||
|
|
||||||
// vite-plugin-mock
|
|
||||||
vitePlugins.push(ConfigMockPlugin(isBuild));
|
|
||||||
}
|
}
|
||||||
return vitePlugins;
|
return vitePlugins;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user