You can now include the
build/app.js file and, depending on your surrounding environment, you will be able to load it using RequireJS/AMD, CommonJS or straight from
window under the
options.main property specifies which file will be considered the "main" one for your package. Somehow, the external world needs to know what to get when they call
require(package_name). If you do not specify this property the following actions are taken:
We try make use of the property
mainas specified in your app's
package.jsonfile. Failing that, we...
Try to find the
index.[js|coffee]file that is closest to the root of your sources.
options.name overrides the name of the package in
package.json. It specified the name of the exported package as in:
require(name). One can pass in an array of names, as alternatives, as well.
Are precompiled so when you require them, you need to only pass a
context to them to get a string back.
The following template wraps your modules: