Skip to content

plugin for watchify, provides cache from the first bundle

License

Notifications You must be signed in to change notification settings

wordijp/first-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

plugin for watchify, provides cache from the first bundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published