Skip to content

paulcsmith/fingerprinter-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fingerprint assets and build a manifest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published