Bundling

The bundles themselves are configured in the webpack.config.js file. By default, the skeleton defines three entry bundles:

  • aurelia-bootstrap: Contains Aurelia's bootstrapper, the default polyfills, Aurelia's browser platform abstraction, and the Bluebird Promise library
  • aurelia: Contains all Aurelia's default libraries
  • app: Contains all application modules

In addition to the modules listed as its direct content, a bundle will contain all its contents' dependencies which are not included in another bundle. For example, in the skeleton's sample, the Bootstrap JS files are included in the app bundle, because it is not included in any other bundle, and modules included in the app bundle import it.

If you would like, for example, the aurelia bundle ...

Get Learning Aurelia now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.