vite

package
v0.0.0-...-792f33a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrManifestNotExist error.
	ErrManifestNotExist = errors.New("mix: the mix manifest does not exist")
)

Functions

This section is empty.

Types

type Entry

type Entry struct {
	File string `json:"file"`

	Assets []string `json:"assets"`
	CSS    []string `json:"css"`

	IsEntry bool `json:"isEntry"`
}

type Manifest

type Manifest struct {
	// contains filtered or unexported fields
}

func New

func New(url, publicPath, manifestDirectory, hotProxyURL string) (*Manifest, error)

New function.

func (*Manifest) GetAsset

func (m *Manifest) GetAsset(path string) string

func (*Manifest) GetJS

func (m *Manifest) GetJS(name string) string

func (*Manifest) GetScript

func (m *Manifest) GetScript(path string) string

func (*Manifest) GetStyles

func (m *Manifest) GetStyles(name string) string

func (*Manifest) Hash

func (m *Manifest) Hash(manifestDirectory string) (string, error)

Hash function.

func (*Manifest) HashFromFS

func (m *Manifest) HashFromFS(manifestDirectory string, staticFS fs.FS) (string, error)

HashFromFS function.

func (*Manifest) LoadViteEmbed

func (m *Manifest) LoadViteEmbed(entry string) (string, error)

Jump to

Keyboard shortcuts

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