rollup-plugin-project-digest
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

npm

Rollup Plugin Project Digest

Rollup plugin to generate a file with digest of all project assets.

Install

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

Usage

In your rollup configuration:

import projectDigest from 'rollup-plugin-project-digest';

export default {
    // ...
    plugins: [
        projectDigest('dist/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/rollup-plugin-project-digest.

License

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i rollup-plugin-project-digest

      Weekly Downloads

      4

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      3.71 kB

      Total Files

      5

      Last publish

      Collaborators

      • djaler