For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration with aurelia.json

The aurelia_project/aurelia.json file centralizes the configuration for your project, including build tasks, paths, and bundling settings. It defines how the CLI interacts with your application, and you can customize it to suit your needs.

Key Sections

build

Controls the build process, including the target output and minification settings:

{
  "build": {
    "targets": [
      {
        "id": "web",
        "displayName": "Web",
        "output": "scripts",
        "index": "index.html",
        "baseDir": ".",
        "minify": "stage & prod",
        "sourcemap": "dev & stage"
      }
    ]
  }
}

platform

Settings specific to the target platform (e.g., web, Electron):

transpiler

Configures the transpiler for your project (Babel or TypeScript):

paths

Directory aliases used throughout the configuration:

bundles

Defines how your application files are bundled for deployment. The built-in bundler uses this to determine which modules go into which bundle files:

The bundles section is only used by the built-in bundler. If you're using Webpack, bundle configuration is handled in your webpack.config.js instead.

Common Customizations

Changing the Dev Server Port

Adding External Dependencies

For the built-in bundler, add third-party libraries to the dependencies array in your vendor bundle:

While the CLI handles most configurations automatically, you can edit aurelia.json for advanced customization. See the built-in bundler and Webpack sections for bundler-specific configuration details.

Last updated

Was this helpful?