package css_printer

import "github.com/evanw/esbuild/internal/css_printer"

Index

Types

type Options

type Options struct {
	RemoveWhitespace  bool
	ASCIIOnly         bool
	AddSourceMappings bool

	// 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

	// 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
}

type PrintResult

type PrintResult struct {
	CSS            []byte
	SourceMapChunk sourcemap.Chunk
}

func Print

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

Source Files

css_printer.go

Version
v0.13.1
Published
Sep 23, 2021
Platform
windows/amd64
Imports
7 packages
Last checked
3 hours ago

Tools for package owners.