On this page

class webpack.CssParser extends Parser

Defines the parser state base type used by this module.

new CssParser(): CssParser
Returns:CssParser
Attributes
defaultMode:"global" | "local" | "auto" | "pure"
magicCommentContext:Context
options:{ animation: boolean; as: string; container: boolean; customIdents: boolean; customMedia: boolean; customSelectors: boolean; dashedIdents: boolean; defaultMode?: "global" | "local" | "auto" | "pure"; exportType?: "link" | "text" | "css-style-sheet" | "style"; fontPreload?: boolean; function: boolean; grid: boolean; import: boolean; namedExports: boolean; pure?: boolean; url: boolean; urlHints?: UrlHintRule[] }
parse(source, state): ParserState
Attributes
source:string | Buffer<ArrayBufferLike> | PreparsedAst
Returns:ParserState

Parses the provided source and updates the parser state.