first-cache
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 -v728042 bytes written to bundle.js # second time, exist cache file $ watchify -p first-cache -r react -r react-dom -o bundle.js -v728042 bytes written to bundle.js
license
MIT