Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSSModuleExport ¶
type CSSModuleExport struct {
Name string `json:"name"`
Composes []CSSModuleReference `json:"composes"`
IsReferenced bool `json:"isReferenced"`
}
type CSSModuleExports ¶
type CSSModuleExports map[string]CSSModuleExport
type CSSModuleReference ¶
type CSSModuleReferences ¶
type CSSModuleReferences map[string]CSSModuleReference
type CSSModulesReq ¶
type CSSModulesReq struct {
Pattern string `json:"pattern,omitempty"`
DashedIdents bool `json:"dashedIdents,omitempty"`
Pure bool `json:"pure,omitempty"`
Animation *bool `json:"animation,omitempty"`
Grid *bool `json:"grid,omitempty"`
CustomIdents *bool `json:"customIdents,omitempty"`
Container *bool `json:"container,omitempty"`
}
type Dependency ¶
type LocationRes ¶
type Meta ¶
type Meta struct {
Exports CSSModuleExports `json:"exports"`
References CSSModuleReferences `json:"references"`
Dependencies []Dependency `json:"dependencies"`
Warnings []string `json:"warnings"`
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(v0 Xwasi_snapshot_preview1) *Module
func (*Module) Xlcss_alloc ¶
func (*Module) Xlcss_free ¶
func (*Module) Xlcss_transform ¶
type PseudoClassesReq ¶
type Request ¶
type Request struct {
Filename string `json:"filename,omitempty"`
Minify bool `json:"minify,omitempty"`
SourceMap bool `json:"sourceMap,omitempty"`
InputSourceMap string `json:"inputSourceMap,omitempty"`
ProjectRoot string `json:"projectRoot,omitempty"`
Targets *TargetsReq `json:"targets,omitempty"`
ErrorRecovery bool `json:"errorRecovery,omitempty"`
Nesting bool `json:"nesting,omitempty"`
CustomMedia bool `json:"customMedia,omitempty"`
DeepSelectorCombinator bool `json:"deepSelectorCombinator,omitempty"`
UnusedSymbols []string `json:"unusedSymbols,omitempty"`
CSSModules *CSSModulesReq `json:"cssModules,omitempty"`
AnalyzeDependencies bool `json:"analyzeDependencies,omitempty"`
RemoveImports bool `json:"removeImports,omitempty"`
PseudoClasses *PseudoClassesReq `json:"pseudoClasses,omitempty"`
StyleAttribute bool `json:"styleAttribute,omitempty"`
}
type SourceRange ¶
type SourceRange struct {
FilePath string `json:"filePath"`
Start LocationRes `json:"start"`
End LocationRes `json:"end"`
}
type TargetsReq ¶
type TargetsReq struct {
Android uint32 `json:"android,omitempty"`
Chrome uint32 `json:"chrome,omitempty"`
Edge uint32 `json:"edge,omitempty"`
Firefox uint32 `json:"firefox,omitempty"`
IE uint32 `json:"ie,omitempty"`
IOSSafari uint32 `json:"iosSaf,omitempty"`
Opera uint32 `json:"opera,omitempty"`
Safari uint32 `json:"safari,omitempty"`
Samsung uint32 `json:"samsung,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.