build(widget): 添加版本号并配置构建banner

在package.json中添加版本号字段,并在vite配置中读取版本号生成构建banner,用于标识构建产物版本
This commit is contained in:
anghunk
2026-01-21 11:52:45 +08:00
parent c0bf1ba066
commit 5c6f156b80
3 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{
"name": "widget",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {