project-digest-webpack-plugin
v1.0.0
Published
<p> <a href="https://www.npmjs.com/package/project-digest-webpack-plugin"> <img src="https://img.shields.io/npm/v/project-digest-webpack-plugin.svg" alt="Version"> </a> <a href="https://www.npmjs.com/package/project-digest-webpack-plugin">
Downloads
4
Readme
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.