Commit 40645d23 by 万亚飞

修改title

parent bcc929e9
#专家版 APP 内嵌 H5 页面
## 项目说明
# React-webpack ------基于 antd-mobile 等库的一套移动端完美脚手架配置
项目名称:专家版 app 内嵌 H5 页面
# 包管理器使用 yarn,下载后 yarn init ,然后 yarn 即可获取所有依赖
## 技术架构
react+antd-mobile 单页面应用
## 项目线上地址
测试地址:https://testh2.yidianling.com
生产地址:https://h2.yidianling.com
## 项目运行说明 :
### 测试环境运行
> npm run i
> npm run dev
### 生产部署说明
> npm i //安装依赖
> npm run build:test //打包测试环境
> npm run build:prod //打包生产环境
- 项目是移动端 react antd-mobile better-scorll material-design redux react-redux 的结合
React 的最新配置
......@@ -212,11 +212,12 @@ module.exports = merge(base, {
vendor: {
// 打包两个页面的公共代码
test: /react|react-dom|react-router-dom|babel-polyfill|antd-mobile/,
chunks: 'async',
chunks: 'all',
priority: 5 // 优先
},
moment: {
test: /moment/,
chunks: 'all',
name: 'moment', // 单独将 elementUI 拆包
priority: 20 // 权重需大于其它缓存组
},
......@@ -227,12 +228,12 @@ module.exports = merge(base, {
// name: 'async-commons',
// priority: 10
// },
// commons: {
// // 其他同步加载公共包
// chunks: 'initial',
// priority: 2,
// minChunks: 2
// }
commons: {
// 其他同步加载公共包
chunks: 'all',
priority: 2,
minChunks: 2
}
}
}
}
......
......@@ -83,13 +83,13 @@
}
},
"build:test": {
"command": "webpack --config ./build/webpack.prod.js",
"command": "webpack --config ./build/webpack.prod.js --progress",
"env": {
"ENV_MARK": "testing"
}
},
"build:prod": {
"command": "webpack --config ./build/webpack.prod.js",
"command": "webpack --config ./build/webpack.prod.js --progress",
"env": {
"ENV_MARK": "production"
}
......
......@@ -72,7 +72,7 @@ class JobList extends Component {
};
}
componentWillMount() {
document.title = '业背景';
document.title = '业背景';
this.setState({
tabIndex: parseInt(getParameterByName('index', location.href)) || 0
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment