赞
踩
.env文件内容:
# 当前环境,VITE_ 开头
VITE_NODE_ENV = 'development'
# 请求基地址
VITE_BASE_URL = '/api'
# 本地代理目标地址,在proxy里面target里面用
VITE_BASE_API = 'http://It's Your Addrese.net'
VITE_NODE_ENV = 'test'
# 请求基地址
VITE_BASE_URL = 'http://It's Your test Addrese.net'
VITE_NODE_ENV = 'production'
# 请求基地址
VITE_BASE_URL = 'http://It's Your prod Addrese.net'
"scripts": {
"dev": "vite", // 默认读取 .env.development文件,会将process.env.NODE_ENV设置为development;
"build": "vue-tsc --noEmit && vite build --mode production",
"build:test": "vue-tsc --noEmit && vite build --mode test",
"build:dev": "vue-tsc --noEmit && vite build --mode development",
"preview": "vite preview",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。