Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.04 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.04 KB

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