Skip to content

Commit

Permalink
更新readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuqing650 committed May 20, 2018
1 parent 623a155 commit 30a6fcc
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# webpack-demo
# webpack-antd

- 使用webpack配置简单服务,用于学习
- 1. 配置 hash 文件名
Expand Down Expand Up @@ -43,11 +43,17 @@
})
```
- 6. 新增了错误捕获插件 `react-transform-catch-errors`
- 7. 关闭了多线程打包,原因如下,测试环境相同(3个线程),都没有修改文件,连续打包后发现数据相差无几,故关闭该处配置.
- 8. 添加新分支`antd-dva`,配置 `webpack` + `dva`
- 9. 添加 `axios`
- 10. 添加 `mockjs`
# 新增了插件
## 多线程打包测试结果
https://github.com/amireh/happypack
happypack 多线程webpack编译文件
webpack-parallel-uglify-plugin 多线程打包文件
|状态|是否开启多线程|首次运行(ms)|再次运行(ms)|三次运行(ms)|四次(ms)|五次运行(ms)|
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|开发模式|是|16335|13970|13888|13451|13604|
|开发模式|否|15666|14109|14020|13826|13791|
|发布模式|是|29978|10812|10833|10567|10266|
|发布模式|否|11794|10531|11203|10648|10630|
----

0 comments on commit 30a6fcc

Please sign in to comment.