区分不同环境请求地址配置
Showing
env/dev.js
0 → 100644
env/prod.js
0 → 100644
{ | { | ||
"dependencies": { | "dependencies": { | ||
"uview-ui": "^2.0.31" | "uview-ui": "^2.0.31" | ||
} | }, | ||
"uni-app": { | |||
"scripts": { | |||
"weixin:test": { | |||
"title": "微信测试环境", | |||
"env": { | |||
"UNI_PLATFORM": "mp-weixin", | |||
"ENV_PATH": "../env/dev.js" | |||
}, | |||
"define": { | |||
"WXCS-PLATFORM": true | |||
} | |||
}, | |||
"weixin:pro": { | |||
"title": "微信生产环境", | |||
"env": { | |||
"UNI_PLATFORM": "mp-weixin", | |||
"ENV_PATH": "../env/prod.js" | |||
}, | |||
"define": { | |||
"WXSC-PLATFORM": true | |||
} | |||
} | |||
} | |||
} | |||
} | } |
Please
register
or
sign in
to comment