Skip to content

a watchify plugin, provides to re bundle only when files changed

License

Notifications You must be signed in to change notification settings

wordijp/changed-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

changed-bundle

NPM

Let changed-bundle plugin for watchify, provides to re bundle only when files changed.

install

npm install changed-bundle

usage

Programmatic API

In your task runner like gulp, add this plugin to browserify:

var b = browserify({
	entries: ['entry.js'],
	cache: {},
	packageCache: {},
	plugin: [watchify],
})
	.plugin('changed-bundle', {
		label: 'LABEL' // optional. distinction with other skip messages
	});

Command Line

$ watchify entry.js -v -p [changed-bundle --label LABEL] > bundle.js

running demo

first time bundle is output bundle file.

567 bytes written to bundle.js (0.12 seconds)

bundle from the second time, skip re bundle if no change in the files.

*** LABEL: skip write to bundle file (0.01 seconds) ***

license

MIT

About

a watchify plugin, provides to re bundle only when files changed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published