Skip to content
Plugin to replace a standard webpack chunkhash with md5.
Branch: master
Clone or download
Latest commit 888acd9 Jan 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dockerfiles
example Add docker Jan 12, 2016
plugin Fix typo Nov 30, 2017
spec
.dockerignore
.editorconfig
.gitignore
.jshintignore
.jshintrc Add docker Jan 12, 2016
.npmignore
LICENSE Initial commit Aug 19, 2015
README.md Fix typo. Jul 7, 2017
build.js
docker-compose.template
docker-compose.yml
index.d.ts Add typings Jan 15, 2018
index.js
package.json Add typings Jan 15, 2018
versions.json

README.md

webpack-md5-hash

NPM

Plugin to replace a standard webpack chunkhash with md5.

Installation

npm install webpack-md5-hash --save-dev

Usage

Just add this plugin as usual.

// webpack.config.js

var WebpackMd5Hash = require('webpack-md5-hash');

module.exports = {
    // ...
    output: {
        //...
        chunkFilename: "[chunkhash].[id].chunk.js"
    },
    plugins: [
        new WebpackMd5Hash()
    ]
};

Development

Setup Docker

Generate Docker files

  • Change versions on node and webpack in versions.json
  • Run ./build.js gen_docker to generate files

Run tests

  • Build Docker images docker-compose build
  • Run tests docker-compose up or docker-compose up | grep exited

Run tests for specific environment

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.

You can’t perform that action at this time.