mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-13 21:43:44 +08:00
优化服务启动流程,修复后端配置组件名称和vue组件名称不一致无法缓存问题
This commit is contained in:
@@ -2,6 +2,7 @@ import type { Plugin } from 'vite';
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers';
|
||||
import topLevelAwait from 'vite-plugin-top-level-await';
|
||||
import setupExtend from 'vite-plugin-vue-setup-extend';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||
import { configHtmlPlugin } from './html';
|
||||
@@ -41,5 +42,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
||||
);
|
||||
}
|
||||
|
||||
vitePlugins.push(setupExtend());
|
||||
|
||||
return vitePlugins;
|
||||
}
|
||||
|
Reference in New Issue
Block a user