mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: build with no embedded front-end files
This commit is contained in:
parent
b090564a34
commit
a560d98acf
10 changed files with 91 additions and 35 deletions
10
app/app_unembed.go
Normal file
10
app/app_unembed.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
//go:build unembed
|
||||
|
||||
package app
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed i18n.json src/language/* src/language/*/* src/version.json
|
||||
var DistFS embed.FS
|
||||
|
||||
var VersionPath = "src/version.json"
|
Loading…
Add table
Add a link
Reference in a new issue