project-digest-webpack-plugin

1.0.0 • Public • Published

Version License

Project Digest Webpack Plugin

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

Install

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

Usage

In your webpack configuration:

const ProjectDigestPlugin = require('project-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.

Dependents (0)

Package Sidebar

Install

npm i project-digest-webpack-plugin

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • djaler