Skip to content

Commit

Permalink
add webpack stat record
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue committed Jul 22, 2019
1 parent 99d0dd5 commit 0b23265
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 3 deletions.
64 changes: 64 additions & 0 deletions 2019-07-22-99d0dd58/client.html

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions 2019-07-22-99d0dd58/server.html

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ $ npm run stat
### ~350KB: 初始大小
### 191.64KB/242.74KB

去除 `lodash``antd` 依赖,使打包体积大幅减小。这一步其实在半年前就已经做了,紧接着随后又写了很多页面与组件,所以在去除两者依赖后,真实的打包体积比现在还有缩减。

+ [Server Stat](https://shici.xiange.tech/2019-07-22-25305f34/server.html)
+ [Client Stat](https://shici.xiange.tech/2019-07-22-25305f34/client.html)
+ 分析: 去除 `lodash``antd` 依赖,使打包体积大幅减小。这一步其实在半年前就已经做了,紧接着随后又写了很多页面与组件,所以在去除两者依赖后,真实的打包体积比现在还有缩减。

### 176.52KB/245.02KB
### 176.51KB/245.02KB

集中 `gql` 管理后,在浏览器模式下可以把所有的 `query` 都是用 `loader` 打到 `common.js` 中,而这些零散的 `query` 在以前被按需加载时重复打包多次。

+ 分析: 集中 `gql` 管理
+ [Server Stat](https://shici.xiange.tech/2019-07-22-99d0dd58/server.html)
+ [Client Stat](https://shici.xiange.tech/2019-07-22-99d0dd58/client.html)

## 相关思考与文章

Expand Down

0 comments on commit 0b23265

Please sign in to comment.