webpack-md5-hash
Plugin to replace a standard webpack chunkhash with md5.
Last updated 2 years ago by erm0l0v .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-md5-hash 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.6                                ...           latest (2 years ago)

5 Versions

  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 3
This Week 273
This Month 577
Last Day 37
Last Week 287
Last Month 1,472
Dependencies (1)
Dev Dependencies (4)
Dependents (171)

Copyright 2014 - 2017 © taobao.org |