package.json的相关配置
{
"scripts": {
"serve": "vue-cli-service serve",
"start": "vue-cli-service start",
"test": "vue-cli-service test",
"build:pro": "vue-cli-service build --mode production",
"build:test": "vue-cli-service build --mode test",
"build:dev": "vue-cli-service build --mode dev",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^1.3.0",
"crypto-js": "^4.1.1",
"sass": "^1.15.0",
"sass-loader": "^10.2.1",
"uview-ui": "^2.0.31",
"vuex": "^4.1.0"
},
"uni-app": {
"scripts": {
"h5-dev": {
"title":"水评测h5-开发",
"browser":"chrome",
"env": {
"UNI_PLATFORM": "h5",
"APP_ENV": "development"
},
"define": {
"H5-DEV": true
}
},
"h5-test": {
"title":"水评测h5-测试",
"browser":"chrome",
"env": {
"UNI_PLATFORM": "h5",
"APP_ENV": "test"
},
"define": {
"H5-DEV": true
}
},
"h5-pro": {
"title":"水评测h5-生产",
"browser":"chrome",
"env": {
"UNI_PLATFORM": "h5",
"APP_ENV": "production"
},
"define": {
"H5-DEV": true
}
}
}
}
}
s***@163.com
- 发布:2023-02-14 15:13
- 更新:2023-02-15 17:45
- 阅读:469
uniapp发行h5 自定义环境变量不生效,始终都是生产环境production
分类:HBuilderX
4***@qq.com
我是vue2 3.96依旧有问题
2023-12-13 10:37
YUANRJ
回复 4***@qq.com: 提供下测试工程
2023-12-13 10:42