multi-browserify

0.1.1 • Public • Published

multi-browserify

Build Status

Run browserify on multiple files.

Sometimes you have multiple entry points for your app and you want to browserified all of them at one go. Factor-bundle works nicely when you have a few entry point files to browserified but what if you have several files?

Multi-Browserify solves this by taking a specified input directory containing all your entry point files and browserified them to a specified output directory.

Installation

npm install multi-browserify -g

Examples

Say all your entry point files are stored in /js/entry/ and you want to output the browserified files to /js/bundles/

multi-browserify -i /js/entry/ -o /js/bundles/
 
# add -s if you want sourcemaps 
multi-browserify -i /js/entry/ -o /js/bundles/ -s

Subdirectories

Multi-Browserify supports entry point files in subdirectories.

Say you have entry point file /js/entry/subdir1/subdir2/a.js. Running multi-browserify -i /js/entry/ -o /js/bundles/ will output file to /js/bundles/subdir1/subdir2/a.js

Testing

npm test

Package Sidebar

Install

npm i multi-browserify

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • pirsquare