On this page

new CleanPlugin(options?): CleanPlugin
Attributes
options:CleanOptions
options
Returns:CleanPlugin
Attributes
options:CleanOptions
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.


Attributes
compilation:Compilation
the compilation
the attached hooks

Returns the attached hooks.

Attributes
keep:SyncBailHook<[string], boolean | void>
when returning true the file/directory will be kept during cleaning, returning false will clean it and ignore the following plugins and config