Skip to content

Commit adf5266

Browse files
author
Ken Berkeley
committed
2 parents 44352cd + ba4b2d9 commit adf5266

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
### <a name="webpack-configure">⊙ Webpack 配置</a>
142142
> 由于已经拥有相对成熟的 Webpack 配置,因此在一定程度上您可以不求甚解,但了解其配置会更能把握整体开发
143143
144-
* 前端开发服务器为 `localhost:9090`,可在 `build/webpack.config.dev.js` 中找到
144+
* 前端开发服务器为 `localhost:9090`,可在 `build/webpack.dev.conf.js` 中找到
145145
> 后端 RESTful API 基地址写在了 `src/services/xhr/config.js` 中,请根据实际自行修改
146146
147147
* 框架 / 类库 须分离打包以加快开发时的编译速度并有利于缓存,详见 `build/webpack.base.conf.js` 中的 `vendor`

build/webpack.prod.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ config.plugins.push(
3030
}),
3131
new CopyWebpackPlugin([ // 复制高度静态资源
3232
{
33-
from: config.commonPath.staticDir,
33+
context: config.commonPath.staticDir,
34+
from: '**/*',
3435
ignore: ['*.md']
3536
}
3637
]),

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"dependencies": {
1515
"history": "^2.0.0",
1616
"lodash": "^4.15.0",
17-
"react": "^15.3.1",
18-
"react-dom": "^15.3.1",
17+
"react": "~15.3.1",
18+
"react-dom": "~15.3.1",
1919
"react-redux": "^4.4.5",
2020
"react-router": "^2.7.0",
2121
"react-router-redux": "^4.0.5",
@@ -37,7 +37,7 @@
3737
"browser-sync-webpack-plugin": "^1.0.1",
3838
"clean-webpack-plugin": "^0.1.13",
3939
"connect-history-api-fallback": "^1.1.0",
40-
"copy-webpack-plugin": "^3.0.1",
40+
"copy-webpack-plugin": "^4.0.1",
4141
"css-loader": "^0.23.0",
4242
"eslint": "^1.10.3",
4343
"eslint-friendly-formatter": "^1.2.2",

src/redux/store/initState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
msg: {
1010
msgs: [], // 当前显示的留言列表
1111
displayControl: { // 查询条件
12-
pageIdx: 1, // 默认是第 10
12+
pageIdx: 1, // 默认是第 1
1313
quantity: 10, // 默认每页显示 10 条记录
1414
authorSpecified: '' // 是否有指定发布者
1515
}

src/utils/userAuth.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,3 @@ export default function userAuth(nextState, replace, next) {
1313
history.goBack()
1414
// next(replace('/loginPage')) # 举例:跳转到登录页的写法
1515
}
16-
17-
/*
18-
还记得吗?在 Vue Demo 中
19-
我们依靠 userService 实现 userData 的全局访问
20-
每次修改顶级变量 $root.userData 都要同步 userService.data
21-
如今用上 Redux,就再也不需要这样操作了
22-
*/

0 commit comments

Comments
 (0)