On this page

new CleanPlugin(options?): CleanPlugin
Attributes
Attributes
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:<void>

Applies the plugin by registering its hooks on the compiler.


Attributes

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