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 antd-mobile better-scorll material-design redux react-redux 的结合
React 的最新配置 React 的最新配置
...@@ -212,11 +212,12 @@ module.exports = merge(base, { ...@@ -212,11 +212,12 @@ module.exports = merge(base, {
vendor: { vendor: {
// 打包两个页面的公共代码 // 打包两个页面的公共代码
test: /react|react-dom|react-router-dom|babel-polyfill|antd-mobile/, test: /react|react-dom|react-router-dom|babel-polyfill|antd-mobile/,
chunks: 'async', chunks: 'all',
priority: 5 // 优先 priority: 5 // 优先
}, },
moment: { moment: {
test: /moment/, test: /moment/,
chunks: 'all',
name: 'moment', // 单独将 elementUI 拆包 name: 'moment', // 单独将 elementUI 拆包
priority: 20 // 权重需大于其它缓存组 priority: 20 // 权重需大于其它缓存组
}, },
...@@ -227,12 +228,12 @@ module.exports = merge(base, { ...@@ -227,12 +228,12 @@ module.exports = merge(base, {
// name: 'async-commons', // name: 'async-commons',
// priority: 10 // priority: 10
// }, // },
// commons: { commons: {
// // 其他同步加载公共包 // 其他同步加载公共包
// chunks: 'initial', chunks: 'all',
// priority: 2, priority: 2,
// minChunks: 2 minChunks: 2
// } }
} }
} }
} }
......
...@@ -83,13 +83,13 @@ ...@@ -83,13 +83,13 @@
} }
}, },
"build:test": { "build:test": {
"command": "webpack --config ./build/webpack.prod.js", "command": "webpack --config ./build/webpack.prod.js --progress",
"env": { "env": {
"ENV_MARK": "testing" "ENV_MARK": "testing"
} }
}, },
"build:prod": { "build:prod": {
"command": "webpack --config ./build/webpack.prod.js", "command": "webpack --config ./build/webpack.prod.js --progress",
"env": { "env": {
"ENV_MARK": "production" "ENV_MARK": "production"
} }
......
...@@ -72,7 +72,7 @@ class JobList extends Component { ...@@ -72,7 +72,7 @@ class JobList extends Component {
}; };
} }
componentWillMount() { componentWillMount() {
document.title = '业背景'; document.title = '业背景';
this.setState({ this.setState({
tabIndex: parseInt(getParameterByName('index', location.href)) || 0 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