chore(renderer): 更新编译配置

This commit is contained in:
wangxuefeng 2025-03-03 15:58:47 +08:00
parent e559b00716
commit e758bc3692
2 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import { defineConfig } from "@farmfe/core";
import vue from "@vitejs/plugin-vue"; import vue from "@vitejs/plugin-vue";
import mkcert from "vite-plugin-mkcert"; import mkcert from "vite-plugin-mkcert";
import Http2Proxy from "@sy/vite-plugin-http2-proxy"; import Http2Proxy from "@sy/vite-plugin-http2-proxy";
import path from "path";
export default defineConfig({ export default defineConfig({
server: { server: {
@ -11,4 +12,12 @@ export default defineConfig({
}, },
// @ts-ignore // @ts-ignore
vitePlugins: [vue(), mkcert({ source: "coding" }), Http2Proxy()], vitePlugins: [vue(), mkcert({ source: "coding" }), Http2Proxy()],
compilation: {
resolve: {
alias: {
"@": path.resolve(process.cwd(), "src"),
$vtj: path.resolve(process.cwd(), ".vtj"),
},
},
},
}); });

View File

@ -6,7 +6,8 @@
"paths": { "paths": {
"@/*": ["src/*"], "@/*": ["src/*"],
"$vtj/*": [".vtj/*"] "$vtj/*": [".vtj/*"]
} },
"lib": ["ES2015", "DOM"]
}, },
"include": ["src"], "include": ["src"],
"exclude": [".vtj"], "exclude": [".vtj"],