Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valpackett/broccoli-static-asset-rev
Provides static file hashes in Broccoli for cache busting
https://github.com/valpackett/broccoli-static-asset-rev
assets broccoli broccoli-plugin cache cache-bust cache-busting caching hashing node static
Last synced: about 1 month ago
JSON representation
Provides static file hashes in Broccoli for cache busting
- Host: GitHub
- URL: https://github.com/valpackett/broccoli-static-asset-rev
- Owner: valpackett
- License: unlicense
- Created: 2017-03-04T14:32:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T15:10:51.000Z (almost 8 years ago)
- Last Synced: 2024-09-17T04:19:09.293Z (4 months ago)
- Topics: assets, broccoli, broccoli-plugin, cache, cache-bust, cache-busting, caching, hashing, node, static
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# broccoli-static-asset-rev [![npm version](https://img.shields.io/npm/v/broccoli-static-asset-rev.svg?style=flat)](https://www.npmjs.org/package/broccoli-static-asset-rev) [![npm downloads](https://img.shields.io/npm/dm/broccoli-static-asset-rev.svg?style=flat)](https://www.npmjs.org/package/broccoli-static-asset-rev) [![Dependency Status](https://img.shields.io/gemnasium/myfreeweb/broccoli-static-asset-rev.svg?style=flat)](https://gemnasium.com/myfreeweb/broccoli-static-asset-rev) [![Unlicense](https://img.shields.io/badge/un-license-green.svg?style=flat)](http://unlicense.org)
A module that provides broccoli-statically (:D) updated file hashes for cache busting, using [readdirp].
Related: [dynamic-asset-rev](https://github.com/myfreeweb/dynamic-asset-rev).
[readdirp]: https://github.com/thlorenz/readdirp
## Installation
```bash
$ npm install --save broccoli-static-asset-rev
```## Usage
```js
const AssetRev = require('broccoli-static-asset-rev')const rev = new AssetRev(someNode) // Will be a tree with assets.json containing the hashes
```## Contributing
Please feel free to submit pull requests!
By participating in this project you agree to follow the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/4/).
## License
This is free and unencumbered software released into the public domain.
For more information, please refer to the `UNLICENSE` file or [unlicense.org](http://unlicense.org).