browserify-cache-api

Attaches per-module caching of module resolution and transformation to a browserify instance.

MIT 14 个版本
安装
npm install browserify-cache-api
yarn add browserify-cache-api
pnpm add browserify-cache-api
bun add browserify-cache-api
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

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

版本列表
3.0.2 2022-05-28
3.0.1 2016-07-28
3.0.0 2016-03-19
2.0.0 2015-04-20
1.5.1 2015-04-27
1.5.0 2015-01-25
1.3.0 2015-01-07
1.2.1 2014-12-31
1.2.0 2014-12-07
1.1.0 2014-12-06
1.0.0 2014-10-21
0.1.2 2014-07-23
0.1.1 2014-07-23
0.1.0 2014-07-22