https://github.com/jsdf/browserify-cache-api
https://github.com/jsdf/browserify-cache-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsdf/browserify-cache-api
- Owner: jsdf
- Created: 2014-07-22T09:49:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-05-28T04:16:26.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T03:38:34.737Z (about 2 months ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 10
- Watchers: 3
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# browserify-cache-api
Attaches per-module caching of module resolution and transformation to a browserify instance.
Caches to a file on disk, invalidated by source file modification time.
Used by [browserify-incremental](https://github.com/jsdf/browserify-incremental)
```js
// create a browserify instance
var b = browserify({
// cache and packageCache opts are required
cache: {},
packageCache: {},
// and then your opts...
});// attach caching, specifying a location to store the cache file
browserifyCache(b, {cacheFile: './tmp/browserify-cache.json'});// browserify module resolution + transformation is now cached
```## Contributing
Please see the [Contributor Guidelines](CONTRIBUTING.md).