class webpack.CssParser extends ParserDefines the parser state base type used by this module.
new CssParser(): CssParserReturns:
CssParserAttributes
comments:
CommentCssParser[]defaultMode:
"global" | "auto" | "local" | "pure"magicCommentContext:
Contextoptions:
{ animation: boolean; container: boolean; customIdents: boolean; dashedIdents: boolean; defaultMode?: "global" | "auto" | "local" | "pure"; exportType?: "link" | "text" | "css-style-sheet" | "style"; function: boolean; grid: boolean; import: boolean; namedExports: boolean; pure?: boolean; url: boolean }getComments(range): CommentCssParser[]Attributes
Returns:
CommentCssParser[]Returns comments in the range.
parse(source, state): ParserStateAttributes
Parses the provided source and updates the parser state.
parseCommentOptions(range): { errors: (Error & { comment: CommentCssParser })[] | null; options: Record<string, any> | null }Attributes
Parses comment options.
Attributes
Attributes