chore(renderer): 更新编译配置
This commit is contained in:
parent
e559b00716
commit
e758bc3692
@ -2,6 +2,7 @@ import { defineConfig } from "@farmfe/core";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import mkcert from "vite-plugin-mkcert";
|
||||
import Http2Proxy from "@sy/vite-plugin-http2-proxy";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
@ -11,4 +12,12 @@ export default defineConfig({
|
||||
},
|
||||
// @ts-ignore
|
||||
vitePlugins: [vue(), mkcert({ source: "coding" }), Http2Proxy()],
|
||||
compilation: {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(process.cwd(), "src"),
|
||||
$vtj: path.resolve(process.cwd(), ".vtj"),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -6,7 +6,8 @@
|
||||
"paths": {
|
||||
"@/*": ["src/*"],
|
||||
"$vtj/*": [".vtj/*"]
|
||||
}
|
||||
},
|
||||
"lib": ["ES2015", "DOM"]
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": [".vtj"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user