esbuild

package
v0.0.0-...-b878dc1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 19 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

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 NewAssetCompileOptionsStorefront

func NewAssetCompileOptionsStorefront(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)

Jump to

Keyboard shortcuts

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