On this page

new CleanPlugin(options?): CleanPlugin
Attributes
options:CleanOptions
options
Returns:CleanPlugin
Attributes
options:CleanOptions
getCompilationHooks:(compilation: Compilation) => { keep: SyncBailHook<[string], boolean | void> }
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.