0.0.6 • Published 6 years ago

webpack-md5-hash v0.0.6

Weekly downloads
33,088
License
MIT
Repository
github
Last release
6 years ago

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.

handywebpackreact-abm-dropdown@cfchase/interactive-landscapekelex-clikelex-commonkelex-plugin-app@cvpcasada/nwbng2workspace-addon-webpackeasy-buildergulp-webpack-project@forehalo/laravel-mix@everything-registry/sub-chunk-3131@ddeis/ngjs-scripts@nodox/gatsbyinteractive-landscape-cagipjellyweb@treshugart/nwbnetdata-collectors-landscape@bkniffler/react-universally-dev@bluebase/cli-web@blueeast/bluerain-cli-engine-web@blueeast/bluerain-cli-webng-cli-2bees-cling2-webpack-configng2-webpack-scriptsboiler-config-webpack@xiaoge-fe/bud-buildlightpack@comet-cli/plugin-documentation@clipped/preset-webpack-frontendboldr-dx-webpackcagip-interactive-landscapebillhighwaysignupneutrino-preset-vue-static@bringhub/webpack-config-packagelaravel-mix-styluslfd@zoitravel/angular-climicropackangular-cli-extangular-cli-with-use-yarn@amazee/react-scriptscuponeria-libola-cliporseaquang-clireact-bundle-builderreact-number-smartpay-with-aella-web-sdkpay2.0cmui2.0cl-packdeployment-toolsreact-redux-universal-boilerplatereact-pubblish-npmreact-router-animation-examplesreact-slingshot-build-scriptssample-cli-clisaguisteamer-react-isomorphicss-clean-webpacksugurutestng2-cliboy-smartxianyu@easy-webpack/config-env-production@dvhb/webpackwebpack-reactjs-boilerplatewebpack-wrapper-commonwebpack-config-rentpathwebpack-builder-boilerplatewebpack-candywebpack-ts-buildwebpack-autowebpack-blocks-split-vendorwac-clitensionzz-magic-envvantbase-ablexuuniversal-cliuniversallyuniversally-dev@infinitebrahmanuniverse/nolb-webpack-mfeds-cli@holisticon/angular-common@holisticon/angularjs-common@gxl/webpack-utils@erect/cli@hackoregon/civic-housingxq-serverxq-tools@lab009/magma-scripts@jereation/webpack-configuratorfz-react-clifserver-cli@olymp/hera@leontastic/gatsbygatsby-songwang@pearson-incubator/dw_filter_list
0.0.6

6 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.1

9 years ago