vite

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildPath       = "./public/build"
	PackageJsonPath = "package.json"
)

Functions

func CreateScriptTag

func CreateScriptTag(source string) string

func GetCompleteScripts

func GetCompleteScripts(resources ...string) string

func GetDevelopmentURL

func GetDevelopmentURL() *string

TODO: find a way to call this only once every request

func GetManifest

func GetManifest() *manifest

func GetScripts

func GetScripts(resources ...string) string

Types

type ManifestInterface

type ManifestInterface interface {
	GetDataByResource(resource string) map[string]interface{}
	GetCompailedFileNameByResource(resource string) *string
	GetCompailedCSSFileNamesByResource(resource string) *[]*string
	GetCompailedImportFileNamesByResource(resource string) *[]*string
}

Jump to

Keyboard shortcuts

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