20260730231110
This commit is contained in:
1 parent
4929b78434
commit
318fa0d9e1
23 files changed
+4026
-506
No files matched your search
@@ -4,6 +4,7 @@ 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({
|
||||
@@ -16,6 +17,15 @@ 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: {
|
||||
"/api": {
|
||||
target: "http://127.0.0.1:8088",
|
||||
@@ -29,5 +39,6 @@ export default defineConfig({
|
||||
Components({
|
||||
resolvers: [AntdvNextResolver()],
|
||||
}),
|
||||
fileViewerRenderers({ copyAssets: true }),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user