vite

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vite

type Vite struct {
	ClientPath      string
	DevelopmentMode bool
	DevServer       string
	ErrorLog        *log.Logger
	InfoLog         *log.Logger
	Host            string
	Manifest        string
	ManifestPath    string
	Port            string
	DistDir         string
	RootDir         string
}

func New

func New(host, port, rootdir, distdir, manifest, developmentmode string, infoLog *log.Logger, errorLog *log.Logger) *Vite

func (*Vite) GetViteAssetPath

func (v *Vite) GetViteAssetPath(b []byte) reflect.Value

Return a path to an asset from the Vite development server in devlopment mode or lookup the path to a Vite resource though the Vite manifest

func (*Vite) ParseViteBuildManifest

func (v *Vite) ParseViteBuildManifest() ViteManifest

Read the Vite manifest file from disk and render a Vite manfiest during Jet template render.

type ViteManifest

type ViteManifest struct {
	Chunk map[string]ViteManifestEntry
}

type ViteManifestEntry

type ViteManifestEntry struct {
	File    string   `json:"file"`
	Name    string   `json:"name"`
	SrcPath string   `json:"src"`
	IsEntry bool     `json:"isEntry"`
	Css     []string `json:"css"`
	Assets  []string `json:"assets"`
}

Jump to

Keyboard shortcuts

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