On this page

new PrefetchPlugin(context, request?): PrefetchPlugin
Attributes
context:string
context or request if context is not set
request:string
request

Creates an instance of PrefetchPlugin.

Attributes
context:string | null
request:string
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.