interface ProcessOptions<RootNode> {
    from?: string;
    map?: boolean | SourceMapOptions;
    parser?: Parser<RootNode> | Syntax<RootNode>;
    stringifier?: Syntax<RootNode> | Stringifier;
    syntax?: Syntax<RootNode>;
    to?: string;
}

Type Parameters

Hierarchy (view full)

Properties

from?: string

The path of the CSS source file. You should always set from, because it is used in source map generation and syntax error messages.

map?: boolean | SourceMapOptions

Source map options

Function to generate AST by string.

stringifier?: Syntax<RootNode> | Stringifier

Class to generate string by AST.

syntax?: Syntax<RootNode>

Object with parse and stringify.

to?: string

The path where you'll put the output CSS file. You should always set to to generate correct source maps.