feat: 初始化 Vue 前端工程与 embed 占位
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package web
|
||||
|
||||
import "io/fs"
|
||||
|
||||
// Dist 返回嵌入的前端静态资源。
|
||||
// 默认(无 embeddist 标签)为 stub 占位,保证裸 go build 可通过;
|
||||
// task build 使用 -tags embeddist 嵌入 pnpm build 产物。
|
||||
func Dist() fs.FS {
|
||||
return distFS
|
||||
}
|
||||
Reference in New Issue
Block a user