We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7aa0f1 commit df0d7a4Copy full SHA for df0d7a4
1 file changed
vite.core.config.ts
@@ -13,5 +13,10 @@ export default defineConfig({
13
rollupOptions: {
14
// 不再需要 external,使用原生 fetch
15
}
16
+ },
17
+ define: {
18
+ // SimApiVersion 由构建注入,AppVersion 留给调用方 APP 注入
19
+ // 使用方式: npm run build -- --SimApiVersion=1.0.0
20
+ 'SimApiVersion': JSON.stringify(process.env.npm_config_SimApiVersion || '0.0.0-develop'),
21
22
})
0 commit comments