Documentation
¶
Index ¶
- Constants
- func Context(ctx context.Context, options AssetCompileOptions) (api.BuildContext, *api.ContextError)
- func DumpViteConfig(options AssetCompileOptions) error
- func ToKebabCase(str string) string
- type AssetCompileOptions
- type AssetCompileResult
- type ViteEntrypoint
- type ViteEntrypoints
- type ViteManifest
- type ViteManifestFile
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)
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 ¶
func CompileExtensionAsset ¶
func CompileExtensionAsset(ctx context.Context, options AssetCompileOptions) (*AssetCompileResult, error)
type ViteEntrypoint ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.