webpack-chunk-hash
Plugin to replace a standard webpack chunk hashing with custom (md5) one.
Note: It's a clone of webpack-md5-hash plugin, but without sorting provided chunks (unobtrusive),
and using native crypto module (performance).
Install
npm install --save-dev webpack-chunk-hash
Example
Just add this plugin as usual.
var WebpackChunkHash = require('webpack-chunk-hash');
module.exports = {
output: {
filename: '[name].[chunkhash].js',
chunkFilename: '[name].[chunkhash].js',
},
plugins: [
new WebpackChunkHash({algorithm: 'md5'})
]
};
License
WebpackChunkHash plugin is released under the MIT license.