Archived
为什么:部署不经 node 构建(dockerignore 排除了源码),服务端 直接读 dist/index.html 与 /assets,因此构建产物必须入库; 文件名经 vite 固定(无内容 hash),golden 契约才能跨构建成立。 gzip 后 app.js 97KB / auth.js 12KB / app.css 11KB。
27 lines
967 B
HTML
27 lines
967 B
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link
|
|
rel="icon"
|
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%8E%B5%3C/text%3E%3C/svg%3E"
|
|
/>
|
|
<title>云村小助手</title>
|
|
<script type="module" crossorigin src="/assets/app.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/app.css">
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script>
|
|
window.__errs = []
|
|
window.addEventListener('error', function (e) {
|
|
window.__errs.push((e.message || String(e)) + ' @ ' + (e.filename || '?') + ':' + e.lineno)
|
|
})
|
|
window.addEventListener('unhandledrejection', function (e) {
|
|
window.__errs.push('PROMISE: ' + ((e.reason && e.reason.message) || String(e.reason)))
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|