示例工程 18-vite-toolchain
18-vite-toolchain/03-two-builds/index.html
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>18 · 两套产物对比</title>
</head>
<body>
<p>打开 Console 查看 dev 与 prod 的请求数、体积与耗时估算。</p>
<script type="module">
import { run } from './main.js';
run();
</script>
</body>
</html>