platform

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

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 Registrator interface {
	AddFunc(name string, fn any)
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL