Skip to content

Webpack plugin to generate file with digest of all project assets

License

Notifications You must be signed in to change notification settings

NooBiToo/digest-webpack-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack plugin to generate file with digest of all project assets.

Install

npm install --save-dev digest-webpack-plugin

Usage

In your webpack configuration:

const ProjectDigestPlugin = require('digest-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new ProjectDigestPlugin('digest', {
        algorithm: 'md5'
    })
  ]
}

This will produce file "digest" in your output directory with digest, based on all project assets:

dc829bf0d79e690c59cee708b527e6b7

Configuration

  • algorithm - Hash algorithm used to generate digest. You can use all algorithms, compatible with crypto.createHash. Examples are 'sha256' (default), 'sha512', etc.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/djaler/project-digest-webpack-plugin.

License

The package is available as open source under the terms of the MIT License.

About

Webpack plugin to generate file with digest of all project assets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%