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 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"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["src/*"],
|
"@/*": ["src/*"],
|
||||||
"$vtj/*": [".vtj/*"]
|
"$vtj/*": [".vtj/*"]
|
||||||
}
|
},
|
||||||
|
"lib": ["ES2015", "DOM"]
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": [".vtj"],
|
"exclude": [".vtj"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user