mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 07:03:01 +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
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user