react-app-shell
Version:
react打包脚本和example, 这里的版本请忽略
24 lines (23 loc) • 700 B
JavaScript
module.exports = {
/**
* 平台, 默认pc, 可选值: pc, h5
* pc, 不处理px 到 rem 的转换
* mobile, 会添加 px 和 rem 转换
*/
platform: 'mobile',
/**
* 静态资源路径, 配置了资源, 则需要手动在html模板里注入js和css
*/
resourcePath: {
staging: {
"staticPath": "https://static-staging.mmears.cn/activity/",
"imgPath": "https://img-staging.mmears.cn/activity/",
"mediaPath": "https://media-staging.mmears.cn/activity/"
},
production: {
"staticPath": "https://static.mmears.cn/activity/",
"imgPath": "https://img.mmears.cn/activity/",
"mediaPath": "https://media.mmears.cn/activity/"
}
}
};