Skip to content

A modification of browserify to build our kind of microlibraries for our kind of envrionment

License

Notifications You must be signed in to change notification settings

BladeRunnerJS/webbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webbuilder

Creates a bundle suitable for use in the browser or node. Uses the browserify internals.

This is primarily for situations where you might want to hook into a require/define system that is already available in the browser, such as is included with BladeRunnerJS.

If you just want to package something generically for the browser, you should use browserify directly.

You can use it by requiring it from node:

    var path = require('path');
    var webbuilder = require('webbuilder');

    // these are the defaults
    var options = {
        includeSystem: true,
        withDependencies: false
    }

    var modulePath = path.resolve(process.cwd(), "myModule");

    webbuilder(modulePath, options);

You can also run it from the command line:

    node webbuilder --includeSystem=false myModule

About

A modification of browserify to build our kind of microlibraries for our kind of envrionment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published