browserify-cache-api-fix

3.0.3 • Public • Published

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

  // 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.3
    2
  • 3.0.2
    1
  • 3.0.1
    1

Package Sidebar

Install

npm i browserify-cache-api-fix

Weekly Downloads

4

Version

3.0.3

License

MIT

Unpacked Size

12.4 kB

Total Files

14

Last publish

Collaborators

  • ivanheral