{"library":"clean-webpack-plugin","type":"library","category":null,"description":"clean-webpack-plugin is a utility designed to clean or remove build folders before or after webpack compilations. Its current stable version is 4.0.0, which supports Node.js 14+ and webpack 5+. The plugin typically sees major version updates to align with breaking changes in Node.js and webpack, ensuring compatibility with the latest ecosystem features. Key differentiators include its simplicity, with no configuration needed for standard usage (cleaning webpack's output.path directory), and its intelligent handling of webpack's watch mode where it only removes assets generated by webpack that are no longer in use. It leverages the 'del' package for robust globbing support, allowing for flexible pattern matching to define what should be cleaned. It is a fundamental tool for maintaining clean build directories in webpack projects.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","webpack","plugin","clean","node","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install clean-webpack-plugin","imports":["import { CleanWebpackPlugin } from 'clean-webpack-plugin';","const { CleanWebpackPlugin } = require('clean-webpack-plugin');"]},{"cmd":"yarn add clean-webpack-plugin","imports":[]},{"cmd":"pnpm add clean-webpack-plugin","imports":[]}],"homepage":null,"github":"https://github.com/johnagan/clean-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/clean-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/clean-webpack-plugin/compatibility"}}