0.0.6 • Published 7 years ago

webpack-md5-hash v0.0.6

Weekly downloads
33,088
License
MIT
Repository
github
Last release
7 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-3131tensionwac-cliwebpack-reactjs-boilerplatewebpack-wrapper-commonxianyusaguisample-cli-clisteamer-react-isomorphicvantbase-ablexulfdlaravel-mix-stylusjellywebinteractive-landscape-cagipmicropacklightpackporseaola-cling2-webpack-configng2-webpack-scriptsng2-clipay2.0pay-with-aella-web-sdkreact-number-smartreact-redux-universal-boilerplatereact-pubblish-npmreact-slingshot-build-scriptsng-cli-2netdata-collectors-landscapeneutrino-preset-vue-staticreact-bundle-builderreact-router-animation-examplesquang-clisugurutestss-clean-webpack@amazee/react-scripts@bkniffler/react-universally-dev@bringhub/webpack-config-package@clipped/preset-webpack-frontend@ddeis/ngjs-scriptsxq-serverxq-toolswebpack-config-rentpathwebpack-builder-boilerplatewebpack-candywebpack-autowebpack-blocks-split-vendorwebpack-ts-builduniversal-cliuniversallyuniversally-devzz-magic-env@easy-webpack/config-env-production@dvhb/webpack@gxl/webpack-utils@hackoregon/civic-housing@holisticon/angularjs-common@holisticon/angular-common@infinitebrahmanuniverse/nolb-webpack-m@lab009/magma-scripts@leontastic/gatsby@netdata/interactive-landscape@nlv8/build-system@namchey/linkpreview@nodox/gatsby@erect/cli@jereation/webpack-configurator@olymp/hera@comet-cli/plugin-documentation@bluebase/cli-web@blueeast/bluerain-cli-engine-web@blueeast/bluerain-cli-web@pearson-incubator/dw_filter_list@pearson-incubator/list-componentfeds-cli@treshugart/nwb@xiaoge-fe/bud-build@zoitravel/angular-cliangular-cli-extangular-cli-with-use-yarnfserver-cligatsby-songwangfz-react-clibillhighwaysignupbees-cliboldr-dx-webpackboiler-config-webpackboy-smartcagip-interactive-landscape
0.0.6

7 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.1

9 years ago