On this page

class webpack.HtmlParser extends Parser

Defines the parser state base type used by this module.

new HtmlParser(): HtmlParser
Returns:HtmlParser
Attributes
context:string
hashFunction:string | typeof Hash
magicCommentContext:Context
outputModule:boolean
parse(source, state): ParserState
Attributes
source:string | Buffer<ArrayBufferLike> | PreparsedAst
Returns:ParserState

Parses the provided source and updates the parser state.