Registry / devops / webpack-md5-hash

webpack-md5-hash

JSON →
library0.0.6jsnpmunverified

A webpack plugin that replaces the standard webpack chunkhash with an MD5 hash based on the chunk's module contents. The latest version (0.0.6) was released with a low-release cadence, no recent updates or maintenance. It's a minimal alternative to webpack's built-in chunkhash, offering deterministic MD5 hashing and supporting older webpack versions. Requires Node.js and webpack. Not actively maintained; consider using webpack's own [contenthash] or other modern hashing plugins.

npm install webpack-md5-hash
INSTALL
IMPORT
SIG · WEBPACK-MD5-HASH
W
webpack-md5-hash
devopsjavascriptv0.0.6
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebpackMd5Hash
✓ var WebpackMd5Hash = require('webpack-md5-hash');
✗ import WebpackMd5Hash from 'webpack-md5-hash';
Only supports CommonJS require syntax; default export is the plugin class. Does not provide named exports or ESM support.

Shows how to add the plugin to a webpack configuration to replace chunkhash with MD5.

// webpack.config.js var WebpackMd5Hash = require('webpack-md5-hash'); module.exports = { entry: './app.js', output: { path: 'dist', filename: '[name].[chunkhash].js', chunkFilename: '[chunkhash].[id].chunk.js' }, plugins: [ new WebpackMd5Hash() ] };
Debug
Known issues
deprecatedThis plugin is not actively maintained and uses MD5, which is cryptographically broken for security purposes.
fix
Use webpack's built-in [contenthash] or a more modern hashing plugin like webpack-hash-webpack-plugin.
affects: >=0.0.1
gotchaThe plugin only works with CommonJS (require); does not support ES module imports.
fix
Use require() in CommonJS context; for ESM projects, consider an alternative plugin with ESM support.
affects: >=0.0.1
breakingPlugin may not be compatible with webpack versions above 4.x; tested only with webpack 1.x.
fix
Check compatibility with your webpack version; for webpack 5, use [contenthash] instead.
affects: >=0.0.1
gotchaOutput filenames must include [chunkhash] placeholder for the plugin to have effect.
fix
Ensure output.filename or output.chunkFilename contains [chunkhash].
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'webpack-md5-hash'
Package not installed
fix
Run 'npm install webpack-md5-hash --save-dev' to install the package.
Plugin is not a constructor
Incorrect import syntax using ESM import instead of CommonJS require
fix
Use 'var WebpackMd5Hash = require('webpack-md5-hash');' instead of import statement.
The 'chunkhash' is not being replaced with MD5
Output filename does not include [chunkhash] placeholder
fix
Add [chunkhash] to output.filename or output.chunkFilename, e.g., '[name].[chunkhash].js'.
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
webpackrequiredPeer dependency; plugin works as a webpack plugin, needed at runtime
Agent activity
11 hits · last 30 days
node
10
Resources
webpack-md5-hash — npm install webpack-md5-hash · libregistry