u
This commit is contained in:
1 parent
89c56fda3e
commit
3400068aa0
199 files changed
+378
-19872
No files matched your search
@@ -24,7 +24,11 @@ export default defineConfig(({ command, mode }) => {
|
||||
VITE_APP_PROXY_ENABLE,
|
||||
} = env
|
||||
console.log('环境变量 env -> ', env)
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.log('当前是开发模式')
|
||||
} else {
|
||||
console.log('当前是生产/打包模式')
|
||||
}
|
||||
return defineConfig({
|
||||
envDir: './env', // 自定义env目录
|
||||
base: VITE_APP_PUBLIC_BASE,
|
||||
|
||||
Reference in new issue
Block a user