css_printer

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// This will be present if the input file had a source map. In that case we
	// want to map all the way back to the original input file(s).
	InputSourceMap *sourcemap.SourceMap

	// If we're writing out a source map, this table of line start indices lets
	// us do binary search on to figure out what line a given AST node came from
	LineOffsetTables []sourcemap.LineOffsetTable

	MinifyWhitespace  bool
	ASCIIOnly         bool
	AddSourceMappings bool
	LegalComments     config.LegalComments
}

type PrintResult added in v0.12.20

type PrintResult struct {
	CSS                    []byte
	ExtractedLegalComments map[string]bool
	SourceMapChunk         sourcemap.Chunk
}

func Print

func Print(tree css_ast.AST, options Options) PrintResult

Jump to

Keyboard shortcuts

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