node package manager


Bundle current project into single javascript file, or with a single addition css file if css is specified.

]# cortex-bundle NPM version Build Status Dependency Status

A command-line tool to bundle cortex packages into single js file/css file.


$ npm install cortex-bundle -g


Bundle is used as cortex plugin

cortex bundle

By default, bunlde command will bunlde javascript files, with neuron configurations and loaders together. Which means you just need only include the bundled file in your page.

If you want to the loader in the cdn, so you don't want neuron to be included, you can run:

cortex bundle --no-neuron

If you want to bunlde only a portion of libs, but not used as page entry. In this situation, you should run:

cortex bundle --lib-only

The output file will include projects and dependencies only, without neuron and neuron configuration.