Socket
Socket
Sign inDemoInstall

webpack-md5-hash

Package Overview
Dependencies
4
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webpack-md5-hash

Plugin to replace a standard webpack chunkhash with md5.


Version published
Weekly downloads
8.5K
decreased by-17.69%
Maintainers
1
Install size
51.6 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 30 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc