fingerprinter-brunch

0.0.2 • Public • Published

fingerprinter-brunch npm version

Originally forked from https://github.com/jvanderneutstulen/hashfingerprint-brunch

A Brunch plugin that will rename assets with an unique SHA hash. This will allow better caching of assets. It will write a manifest file, so other tooling can rewrite the urls.

Usage

yarn add fingerprinter-brunch

Note: if you're using gzip-brunch make sure fingerprinter-brunch is listed before gzip-brunch in the dependency list of your package.json

Options

Default configuration:

module.exports = config:
  plugins:
    fingerprinter:
      manifest: 'public/manifest.json'
      precision: 8

manifest

Output location of the manifest file.

precision

How many characters of the SHA1 hash must be used in the hashed filename. Default should be fine.

License

MIT

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i fingerprinter-brunch

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • paulcsmith