chore: stop tracking web dist build artifacts

Add /web/dist to .gitignore, untrack the committed vite build output,
and update the embed.go comment to reflect that dist is generated by
the Makefile web target instead of being committed.
This commit is contained in:
wweir
2026-08-10 16:29:31 +08:00
parent 112bd84bc2
commit 53d4271813
6 changed files with 3 additions and 1831 deletions
+1
View File
@@ -34,6 +34,7 @@
/*.tf
# frontend
/web/node_modules
/web/dist
# agent working data (subagent artifacts, not project content)
/.pi-subagents
File diff suppressed because one or more lines are too long
-1798
View File
File diff suppressed because one or more lines are too long
-15
View File
@@ -1,15 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#0d9488"/>
<stop offset="100%" stop-color="#0f766e"/>
</linearGradient>
</defs>
<rect width="32" height="32" rx="7" fill="url(#g)"/>
<g fill="none" stroke="#f5f2e6" stroke-linecap="round" stroke-linejoin="round">
<circle cx="16" cy="24" r="3.5" fill="#f5f2e6" stroke="none"/>
<path d="M16 20.5 C16 15, 16 12, 16 8" stroke-width="3"/>
<path d="M16 12 L9.5 5.5" stroke-width="2.5"/>
<path d="M16 12 L22.5 5.5" stroke-width="2.5"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 670 B

-15
View File
@@ -1,15 +0,0 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<title>Sower Admin</title>
<script type="module" crossorigin src="/assets/index-C9pF9Fk-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BQCNGJsO.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
+2 -2
View File
@@ -1,6 +1,6 @@
// Package web embeds the built admin console frontend into the binary.
// The dist directory is generated by `bun run build` in this directory and
// is committed so `go build` works without a frontend toolchain.
// The dist directory is generated by `bun run build` in this directory
// (see the Makefile `web` target, a prerequisite of the sower build).
package web
import (