esbuild

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalVariablesScssPath = "file://internal//variables.scss"
	InternalMixinsScssPath    = "file://internal//mixins.scss"
)
View Source
const DotJs = ".js"

Variables

This section is empty.

Functions

func DumpViteConfig

func DumpViteConfig(options AssetCompileOptions) error

Types

type AssetCompileOptions

type AssetCompileOptions struct {
	ProductionMode  bool
	DisableSass     bool
	EntrypointDir   string
	OutputDir       string
	Name            string
	Path            string
	OutputJSFile    string
	OutputCSSFile   string
	StaticSourceDir string
	StaticTargetDir string
}

func NewAssetCompileOptionsAdmin

func NewAssetCompileOptionsAdmin(name, path string) AssetCompileOptions

func NewAssetCompileOptionsFrontend added in v0.0.3

func NewAssetCompileOptionsFrontend(name, path string, newLayout bool) AssetCompileOptions

type AssetCompileResult

type AssetCompileResult struct {
	Name       string
	Entrypoint string
	JsFile     string
	CssFile    string
}

func CompileExtensionAsset

func CompileExtensionAsset(ctx context.Context, options AssetCompileOptions) (*AssetCompileResult, error)

type ViteEntrypoint

type ViteEntrypoint struct {
	Css     []string `json:"css"`
	Dynamic []string `json:"dynamic"`
	Js      []string `json:"js"`
	Legacy  bool     `json:"legacy"`
	Preload []string `json:"preload"`
}

type ViteEntrypoints

type ViteEntrypoints struct {
	Base        string                    `json:"base"`
	EntryPoints map[string]ViteEntrypoint `json:"entryPoints"`
	Legacy      bool                      `json:"legacy"`
	Metadata    interface{}               `json:"metadatas"`
	Version     []interface{}             `json:"version"`
	ViteServer  *interface{}              `json:"viteServer"`
}

type ViteManifest

type ViteManifest struct {
	MainJs ViteManifestFile `json:"main.js"`
}

type ViteManifestFile

type ViteManifestFile struct {
	File    string   `json:"file"`
	Name    string   `json:"name"`
	Src     string   `json:"src"`
	IsEntry bool     `json:"isEntry"`
	Css     []string `json:"css"`
}

Jump to

Keyboard shortcuts

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