Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseViteManifest ¶
func UseViteManifest(r Registrator, path string, isDev bool)
UseViteManifest registers the "vite" template function with the router.
Types ¶
type ManifestManager ¶
type ManifestManager struct {
// contains filtered or unexported fields
}
func NewManifestManager ¶
func NewManifestManager(path string, isDev bool) *ManifestManager
func (*ManifestManager) GetCSSFiles ¶
func (m *ManifestManager) GetCSSFiles(entry string) []string
func (*ManifestManager) GetEntryFile ¶
func (m *ManifestManager) GetEntryFile(entry string) string
func (*ManifestManager) Load ¶
func (m *ManifestManager) Load() error
type Registrator ¶
type ViteManifest ¶
type ViteManifest map[string]struct { File string `json:"file"` CSS []string `json:"css"` Assets []string `json:"assets"` IsEntry bool `json:"isEntry"` Src string `json:"src"` IsDynamicEntry bool `json:"isDynamicEntry"` }
ViteManifest represents the structure of a Vite manifest.json file.
Click to show internal directories.
Click to hide internal directories.