Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fe-app-h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
万亚飞
fe-app-h5
Commits
40645d23
Commit
40645d23
authored
Jun 06, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改title
parent
bcc929e9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
13 deletions
+34
-13
README.md
README.md
+23
-3
webpack.prod.js
build/webpack.prod.js
+8
-7
package.json
package.json
+2
-2
JobList.js
src/pages/user/JobList.js
+1
-1
No files found.
README.md
View file @
40645d23
#
专家版 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 的最新配置
build/webpack.prod.js
View file @
40645d23
...
@@ -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
:
'a
sync
'
,
chunks
:
'a
ll
'
,
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: 'initia
l',
chunks
:
'al
l'
,
//
priority: 2,
priority
:
2
,
//
minChunks: 2
minChunks
:
2
//
}
}
}
}
}
}
}
}
...
...
package.json
View file @
40645d23
...
@@ -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"
}
}
...
...
src/pages/user/JobList.js
View file @
40645d23
...
@@ -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
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment