A Webpack plugin for removing files and folders during the build process. Version 0.2.3, last release unknown (likely deprecated). Provides simple cleaning functionality on specified build hooks. Minimal configuration: only 'on' and 'path' options. Limited to removing files/folders, with no glob support, logging, or dry-run. Replaced by more modern tools like 'clean-webpack-plugin' or 'webpack-remove-files'.
npm install webpack-clean-pluginVerified import paths — ran on the pinned version, not inferred.
Basic Webpack configuration using webpack-clean-plugin to remove the dist folder on the emit hook.
Migrate to 'clean-webpack-plugin' (npm install clean-webpack-plugin --save-dev) and replace plugin import and instantiation.
Use 'emit' or 'compile' for proper hook name.
Use clean-webpack-plugin with 'patterns' option or specify exact paths.
Switch to clean-webpack-plugin which supports async cleanup.
npm install webpack-clean-plugin --save-dev
Use 'const { WebpackCleanPlugin } = require('webpack-clean-plugin');'Ensure path is absolute or relative to project root; use 'emit' hook.
No dependency data recorded yet.