Fork from https://github.com/erm0l0v/webpack-md5-hash
Plugin to replace a standard webpack chunkhash with md5.
npm install webpack-md5-hash-fixed --save-dev
Just add this plugin as usual.
// webpack.config.js
var WebpackMd5Hash = require('webpack-md5-hash-fixed');
module.exports = {
// ...
output: {
//...
chunkFilename: "[chunkhash].[id].chunk.js"
},
plugins: [
new WebpackMd5Hash()
]
};
- Install Docker Toolbox
- Setup Docker Machine
- Change versions on node and webpack in versions.json
- Run
./build.js gen_docker
to generate files
- Build Docker images
docker-compose build
- Run tests
docker-compose up
ordocker-compose up | grep exited
Example: you need test code on node v0.12 and webpack v1.8
- Build image
docker-compose build test_n_0.12_w_1.8
- Run tests
docker-compose run --rm test_n_0.12_w_1.8
And now instead of standard value of chunkhash you'll get a md5 based on chunk's modules.