assets

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundler

type Bundler struct {
	DevMode       bool
	OutDir        string
	PluginManager *plugins.Manager
	WasmCompiler  *wasm.Compiler
}

func NewBundler

func NewBundler(outDir string) *Bundler

func (*Bundler) BundleScripts

func (b *Bundler) BundleScripts(comp *parser.Component, pagePath string) (string, error)

func (*Bundler) BundleStyles

func (b *Bundler) BundleStyles(comp *parser.Component, pagePath string) (string, error)

func (*Bundler) BundleWasmScripts

func (b *Bundler) BundleWasmScripts(comp *parser.Component, pagePath string) ([]WasmAsset, error)

func (*Bundler) GenerateScopeID

func (b *Bundler) GenerateScopeID(pagePath string) string

func (*Bundler) InjectAssets

func (b *Bundler) InjectAssets(html, cssPath, jsPath, scopeID string) string

func (*Bundler) InjectAssetsWithWasm

func (b *Bundler) InjectAssetsWithWasm(html, cssPath, jsPath, scopeID string, wasmAssets []WasmAsset) string

type WasmAsset

type WasmAsset struct {
	WasmPath   string
	LoaderPath string
}

Jump to

Keyboard shortcuts

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