feat: add front-end placeholder file

This commit is contained in:
misitebao 2021-10-09 01:39:37 +08:00
parent 1b0b717f64
commit fe97eb1a4a
3 changed files with 4 additions and 1 deletions

2
frontend/.gitignore vendored
View File

@ -1,6 +1,6 @@
.DS_Store
node_modules
/dist
# /dist
# local env files

2
frontend/dist/index.html vendored Normal file
View File

@ -0,0 +1,2 @@
<!-- This file is a placeholder to prevent IDE warnings for go:embed -->
<!-- 此文件是一个占位符,用于防止 go:embed 的 IDE 警告 -->

View File

@ -3,6 +3,7 @@
"outputfilename": "{{.BinaryName}}",
"assetdir": "frontend/dist",
"frontend:install": "npm install",
"frontend:dev":"npm run build",
"frontend:build": "npm run build",
"author": {
"name": "{{.AuthorName}}",