Webpack plugin that replaces standard chunk hashing with a custom MD5 hash, without sorting chunks (unobtrusive) and using Node's native crypto module for performance. Current stable version is 0.6.0, which supports Webpack 4 while maintaining backward compatibility with Webpack 3. It is a clone of webpack-md5-hash but avoids chunk sorting and uses native crypto. The plugin offers options for algorithm, digest, and additional hash content. Release cadence is low; the plugin is stable but not actively developed.
npm install webpack-chunk-hashVerified import paths — ran on the pinned version, not inferred.
Replaces Webpack's default chunk hashing with MD5 using the plugin. Configures output filenames with [chunkhash] and applies the plugin.
Consider removing the plugin and relying on Webpack 4's built-in hashing or upgrading to Webpack 5 which uses content hash.
Use [contenthash] instead of [chunkhash] and replace this plugin with Webpack 5's built-in deterministic hashing.
Ensure chunk order is deterministic or use a plugin that sorts chunks (e.g., webpack-md5-hash).
Use require() or configure your bundler for CJS interop.
Use default import: const WebpackChunkHash = require('webpack-chunk-hash');Run: npm install --save-dev webpack-chunk-hash
No dependency data recorded yet.