If you don't have Webpack:
$ npm install webpack -g
$ npm install webpack-dev-server -g
For project:
$ npm install
$ webpack-dev-server
Open a browser and navigate to http://localhost:3000
After NPM is initialized, the order of the npm install
statements does not matter
- Initialize NPM
$ npm init
- Install Aurelia project dependencies
$ npm install --save aurelia-bootstrapper-webpack aurelia-event-aggregator aurelia-framework aurelia-history-browser aurelia-loader-webpack aurelia-logging-console aurelia-templating-binding aurelia-templating-resources aurelia-templating-router
- Install webpack dev dependencies
$ npm install --save-dev webpack webpack-dev-server aurelia-webpack-plugin html-webpack-plugin
- Install TypeScript dev dependencies
$ npm install --save-dev typescript tslint
- Install Webpack loaders
$ npm install --save-dev css-loader file-loader html-loader imports-loader resolve-url-loader style-loader ts-loader url-loader
- Created webpack.config.js with much copying/pasting.
- Created tsconfig.json (copy/paste).
- Built Aurelia project, starting with index.html, as normal.