20260731171910
This commit is contained in:
1 parent
318fa0d9e1
commit
c00329b5a4
6 files changed
+1148
-2337
No files matched your search
@@ -4,7 +4,6 @@ import vue from "@vitejs/plugin-vue";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { AntdvNextResolver } from "@antdv-next/auto-import-resolver";
|
||||
import Components from "unplugin-vue-components/vite";
|
||||
import { fileViewerRenderers } from "@file-viewer/vite-plugin";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -17,13 +16,10 @@ export default defineConfig({
|
||||
host: "127.0.0.1",
|
||||
port: 5180,
|
||||
strictPort: true,
|
||||
// 排除静态资源目录的监听:full 包复制出的 WASM/字体体积大,
|
||||
// 在 Windows 下易被锁定导致 Vite 监听报 EBUSY 崩溃;public 下资源按需直接服务,无需监听
|
||||
watch: {
|
||||
ignored: [
|
||||
"**/node_modules/**",
|
||||
"**/.git/**",
|
||||
"**/public/file-viewer/**",
|
||||
],
|
||||
},
|
||||
proxy: {
|
||||
@@ -39,6 +35,5 @@ export default defineConfig({
|
||||
Components({
|
||||
resolvers: [AntdvNextResolver()],
|
||||
}),
|
||||
fileViewerRenderers({ copyAssets: true }),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user