On this page

new CleanPlugin(options?): CleanPlugin
Attributes
options
Attributes
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.

  • keep <SyncBailHook><<Tuple><<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