On this page

new CleanPlugin(options?): void
  • options {CleanOptions} options
  • Returns: {CleanPlugin}
  • options {CleanOptions}
webpack.CleanPlugin.apply(compiler): void
  • compiler {Compiler} the compiler instance
  • Returns: {void}

Apply the plugin


webpack.CleanPlugin.getCompilationHooks(compilation): void
  • compilation {Compilation} the compilation
  • Returns: {CleanPluginCompilationHooks} the attached hooks