Archived
chore: 提交 React 前端构建产物(app.js 330KB / auth.js 38KB / app.css 56KB)
为什么:部署不经 node 构建(dockerignore 排除了源码),服务端 直接读 dist/index.html 与 /assets,因此构建产物必须入库; 文件名经 vite 固定(无内容 hash),golden 契约才能跨构建成立。 gzip 后 app.js 97KB / auth.js 12KB / app.css 11KB。
This commit is contained in:
1 parent
8803444755
commit
58853abd3c
6 files changed
+88
No files matched your search
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
<!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>
|
||||
Reference in new issue
Block a user