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 Context ¶
func Context(ctx context.Context, options AssetCompileOptions) (api.BuildContext, *api.ContextError)
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 ¶
func CompileExtensionAsset ¶
func CompileExtensionAsset(ctx context.Context, options AssetCompileOptions) (*AssetCompileResult, error)
Click to show internal directories.
Click to hide internal directories.