{
"name": "H5",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"uni-app": {
"scripts": {
"h5dev": {
"title": "h5开发版",
"browser": "chrome",
"env": {
"UNI_PLATFORM": "h5",
"VUE_APP_HTTP_URL": "开发地址",
"VUE_APP_HTTP_API": "/developmentapi",
"ENV": "development"
},
"define": {
"H5-DEV": true
}
},
"h5prod": {
"title": "h5生产版",
"browser": "chrome",
"env": {
"UNI_PLATFORM": "h5",
"VUE_APP_HTTP_URL": "生产地址",
"VUE_APP_HTTP_API": "/productionapi",
"ENV": "production"
},
"define": {
"H5-PROD": true
}
}
}
},
"dependencies": {
"jweixin-module": "^1.6.0",
"uview-ui": "^2.0.36",
"vuex-persistedstate": "^4.1.0"
}
}
uni配置运行和打包环境Base地址
最新推荐文章于 2024-05-15 11:43:59 发布