1.0.0 • Published 9 years ago

first-cache v1.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
9 years ago

first-cache

NPM

Let first-cache plugin for watchify, provides cache from the first bundle.

install

npm install first-cache

usage

Command Line

$ watchify entry.js -v -p [first-cache -c ./tmp/browserify-cache.json] > bundle.js

running demo

first time bundle is no cache file.

# first time, no cache file
$ watchify -p first-cache -r react -r react-dom -o bundle.js -v
728042 bytes written to bundle.js (2.65 seconds)

# second time, exist cache file
$ watchify -p first-cache -r react -r react-dom -o bundle.js -v
728042 bytes written to bundle.js (0.23 seconds)

license

MIT