Socket
Socket
Sign inDemoInstall

fingerprinter-brunch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fingerprinter-brunch

Rename assets based on SHA1 hash for cache busting


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 03 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc