Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssetPath ¶
GetAssetPath returns the path to an asset, handling development and production environments
func GetManifestPath ¶
GetManifestPath returns the path to an asset from the manifest
func InitializeAssets ¶
InitializeAssets initializes the asset manifest with the provided configuration
Types ¶
type ManifestEntry ¶
type ManifestEntry struct {
File string `json:"file"`
Src string `json:"src,omitempty"`
CSS []string `json:"css,omitempty"`
Imports []string `json:"imports,omitempty"`
}
ManifestEntry represents a single entry in the Vite manifest file
type ViteManifest ¶
type ViteManifest map[string]ManifestEntry
ViteManifest represents the entire Vite manifest file
var ( // Manifest contains the webpack manifest data for asset versioning Manifest ViteManifest )
Click to show internal directories.
Click to hide internal directories.