Bundle with browserify only when file changed from last time
$ npm install abrowserify --save
'use strict'
const abrowserify = require('abrowserify')
const co = require('co')
co(function * () {
yield abrowserify('src/entrypoint.js', 'public/bundle.js', {
debug: true
})
}).catch((err) => console.error(err))
abrowserify(src, dest, options) -> Promise
Name | Type | Description |
---|---|---|
src | string | Source file name |
dest | string | Destination file name |
options | Object | Optional settings |
options.status | string | Status file path |
options.cache | string | Cache file path |
options.reflects | string[] | File patterns to reflects changes |
This software is released under the MIT License.