Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

HTML 产物构建规范 #658

Open
chenjun1011 opened this issue Nov 2, 2022 · 0 comments
Open

HTML 产物构建规范 #658

chenjun1011 opened this issue Nov 2, 2022 · 0 comments

Comments

@chenjun1011
Copy link
Contributor

chenjun1011 commented Nov 2, 2022

Browser History 的应用

  • 每一个路由都会构建一张独立的 HTML,这个 HTML 里构建了当前路由依赖的资源和 matched ids
  • HTML 加载后,可以并行加载主 Bundle、页面 Bundle、页面数据(传统 SPA 应用一般依赖主 Bundle 串行加载,这是 ICE3 相对于 ICE2 做的优化)

Browser History 的应用,如果只用到 Assets 发布的能力,不需要 HTML 产物,可以新增一个开关,来支持这个能力

Hash History 的应用

  • 只构建一张 HTML,里面只包含主 Bundle
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant