A metalsmith plugin to browserify your javascript.
{
"plugins": {
"metalsmith-browserify": {
"files": ["path/to/source"],
"dest": "path/to/dest"
}
}
}
#### Javascript
metalsmith.use(browserify({
files: ['path/to/source'],
dest: 'path/to/destination'
}));
files
: array of source file pathsdest
: bundle destination pathtransforms
: array of transform instances to be passed through to b.transformexcludeOtherSources
: if true, remove all js files other thandest
from the output (default true)emitSourceMap
: if true, append a source map todest
(default false)standalone
: if passed a string, exposes resulting module on window
MIT