Skip to content
Bundle CommonJS/Node.js modules for web browser
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


commonjs-webbuild --- Bundle CommonJS modules for browser

At the time works only with node.js

It's published on npm:
npm install webbuild


var webbuild = require('webbuild');
webbuild(input, output, callback);

input - path to your javascript program. Doesn't have to be module itself,
	within this file you work with modules you need. Webbuild will read what
	modules you've required and would bundle them with their dependencies and
	program code into output file.
output - output script filename
callback - called after build is done

See test/all.js for working example.

- Support for top-level modules
- Support for Narwhal and Rhino
- Better, error free require calls lookup
Something went wrong with that request. Please try again.