HashedModuleIdsPlugin

This plugin will cause hashes to be based on the relative path of the module, generating a four character string as the module id. Suggested for use in production.

new webpack.HashedModuleIdsPlugin({
  // Options...
})

Options

This plugin supports the following options:

Usage

Here's an example of how this plugin might be used:

new webpack.HashedModuleIdsPlugin({
  hashFunction: 'sha256',
  hashDigest: 'hex',
  hashDigestLength: 20
})