Documentation ¶
Index ¶
- type Visitor
- func (v *Visitor) Rewrite(script *ast.Script) error
- func (v *Visitor) VisitBoolValue(b *ast.BoolValue)
- func (v *Visitor) VisitComment(n *ast.Comment)
- func (v *Visitor) VisitElement(e *ast.Element)
- func (v *Visitor) VisitExpr(e *ast.Expr)
- func (v *Visitor) VisitField(f *ast.Field)
- func (v *Visitor) VisitScript(s *ast.Script)
- func (v *Visitor) VisitStringValue(s *ast.StringValue)
- func (v *Visitor) VisitText(t *ast.Text)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Visitor ¶
type Visitor struct { Path string // the path to the file Prefix string // the prefix for the scoped styles (e.g. jsx-) Attr string // the attribute to prepend the class to (e.g. class) ImportName string // the name of the import (e.g. Style) Minify bool // whether to minify the css Engines []esbuild.Engine // the browser engines we're targeting // contains filtered or unexported fields }
func (*Visitor) VisitBoolValue ¶
func (*Visitor) VisitComment ¶
func (*Visitor) VisitElement ¶
func (*Visitor) VisitField ¶
func (*Visitor) VisitScript ¶
func (*Visitor) VisitStringValue ¶
func (v *Visitor) VisitStringValue(s *ast.StringValue)
Click to show internal directories.
Click to hide internal directories.