diegohaz/arc

The example vendor.js is 590Kb how can we make it smaller?

開放

#290 建立於 2017年6月23日

 (3 則留言) (1 個反應) (0 位負責人)JavaScript (291 個分叉)github user discovery
PR welcomehelp wanted

倉庫指標

星標
 (2,924 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I tried to use you helper splitVendor() to try to split the vendor js (590Kb) into many chunks but I did not succeed. I think the exemple should include this natively (who wants do download 590Kb of js at ones).

I would like to extract vendors: react, redux, and other big ones. I am interested in the redux-ssr branch so there is no js at all that is run on client side when you connect to the website the first time which mean having a lot of chunk and taking advantage of http2 would be a very good thing.

Can you help me with that?

貢獻者指南