To keep the Aurelia CLI up-to-date:
npm update -g aurelia-cli
{% hint style="info" %} Regular updates ensure access to the latest features and bug fixes. {% endhint %}
To migrate your project from the CLI's built-in bundler to Webpack:
-
Install Webpack Dependencies:
npm install --save-dev webpack webpack-cli aurelia-webpack-plugin
-
Generate Webpack Configuration:
au migrate-to-webpack
-
Update Project Files:
- Replace
aurelia_project/tasks
with Webpack configurations. - Adjust
package.json
scripts accordingly.
- Replace
{% hint style="info" %} Backup your project before migration. {% endhint %}
Ensure your Aurelia CLI is updated to version 1.0.0-beta.1
or above to utilize the auto-tracing bundler.
npm update -g aurelia-cli
Hint: Auto-tracing enhances dependency management by reducing manual configurations.
When updating or installing 3rd party plugins:
-
Install via NPM:
npm install <plugin-name> --save
-
Configure in
aurelia.json
:- Add necessary entries in the
dependencies
array. - Update
copyFiles
if additional assets are required.
- Add necessary entries in the