A webpack plugin that removes obsolete chunk files during watch mode, particularly useful when using hashed output filenames. The current stable version is 0.4.0, released with irregular cadence. It supports webpack versions 2, 3, and 4, and Node.js versions 6, 7, 8. Key differentiators: it cleans files from child compilations with the 'deep' option and offers verbose logging. Unlike other clean plugins, it specifically targets chunks that are no longer emitted, preventing output directory bloat during development.
npm install webpack-clean-obsolete-chunksNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to a webpack configuration with options. Assumes hashed filenames to see obsolete chunks being cleaned.
Ensure each child compilation has a unique name. Uniqueness is required for proper cleanup.
Update to v0.1.5 or later.
Update to v0.1.8 or later.
Update to v0.1.9 or later.
Run 'npm install webpack-clean-obsolete-chunks --save-dev' and double-check the spelling.
Use 'const CleanObsoleteChunks = require('webpack-clean-obsolete-chunks');' instead of import.Ensure the plugin is added after the output configuration and within the plugins array.
No dependency data recorded yet.