示例工程 17-tree-shaking-splitting-hmr
17-tree-shaking-splitting-hmr/03-code-splitting/index.html
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>17 · code splitting</title>
</head>
<body>
<p>打开 Console 查看静态入口与动态 chunk 的划分。</p>
<script type="module">
import { run } from './main.js';
run();
</script>
</body>
</html>