()
| 39 | } |
| 40 | |
| 41 | func init() { |
| 42 | iconType = mimetype.Detect(iconContent).String() |
| 43 | viteContentType = mimetype.Detect(viteContent).String() |
| 44 | server.SetIndexHtmlHandler(IndexHtml) |
| 45 | server.AddSystemPlugin(new(Frontend)) |
| 46 | } |
| 47 | func getFileSystem(dir string) http.FileSystem { |
| 48 | fDir, err := fs.Sub(dist, path.Join("dist", dir)) |
| 49 | if err != nil { |