Migrate project from Vue to React and TypeScript
This commit is contained in:
21
internal/fs/fs_prod.go
Normal file
21
internal/fs/fs_prod.go
Normal file
@@ -0,0 +1,21 @@
|
||||
//go:build prod
|
||||
|
||||
package fs
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed dist
|
||||
var embedUI embed.FS
|
||||
|
||||
// / GetUIFS returns an embed FS for the UI components in the dist dir.
|
||||
func getUIAssets() fs.FS {
|
||||
f, err := fs.Sub(embedUI, "dist")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return f
|
||||
}
|
||||
Reference in New Issue
Block a user