{"id":20792,"library":"webpack-md5-hash","title":"webpack-md5-hash","description":"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.","status":"maintenance","version":"0.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/erm0l0v/webpack-md5-hash","tags":["javascript","webpack","hash","plugin","md5"],"install":[{"cmd":"npm install webpack-md5-hash","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-md5-hash","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-md5-hash","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; plugin works as a webpack plugin, needed at runtime","package":"webpack","optional":false}],"imports":[{"note":"Only supports CommonJS require syntax; default export is the plugin class. Does not provide named exports or ESM support.","wrong":"import WebpackMd5Hash from 'webpack-md5-hash';","symbol":"WebpackMd5Hash","correct":"var WebpackMd5Hash = require('webpack-md5-hash');"}],"quickstart":{"code":"// webpack.config.js\nvar WebpackMd5Hash = require('webpack-md5-hash');\nmodule.exports = {\n  entry: './app.js',\n  output: {\n    path: 'dist',\n    filename: '[name].[chunkhash].js',\n    chunkFilename: '[chunkhash].[id].chunk.js'\n  },\n  plugins: [\n    new WebpackMd5Hash()\n  ]\n};","lang":"javascript","description":"Shows how to add the plugin to a webpack configuration to replace chunkhash with MD5."},"warnings":[{"fix":"Use webpack's built-in [contenthash] or a more modern hashing plugin like webpack-hash-webpack-plugin.","message":"This plugin is not actively maintained and uses MD5, which is cryptographically broken for security purposes.","severity":"deprecated","affected_versions":">=0.0.1"},{"fix":"Use require() in CommonJS context; for ESM projects, consider an alternative plugin with ESM support.","message":"The plugin only works with CommonJS (require); does not support ES module imports.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Check compatibility with your webpack version; for webpack 5, use [contenthash] instead.","message":"Plugin may not be compatible with webpack versions above 4.x; tested only with webpack 1.x.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Ensure output.filename or output.chunkFilename contains [chunkhash].","message":"Output filenames must include [chunkhash] placeholder for the plugin to have effect.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install webpack-md5-hash --save-dev' to install the package.","cause":"Package not installed","error":"Cannot find module 'webpack-md5-hash'"},{"fix":"Use 'var WebpackMd5Hash = require('webpack-md5-hash');' instead of import statement.","cause":"Incorrect import syntax using ESM import instead of CommonJS require","error":"Plugin is not a constructor"},{"fix":"Add [chunkhash] to output.filename or output.chunkFilename, e.g., '[name].[chunkhash].js'.","cause":"Output filename does not include [chunkhash] placeholder","error":"The 'chunkhash' is not being replaced with MD5"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}