/esmug-demo

Azure Static Web Apps Demo for the ESMUG User Group

Primary LanguageJavaScript

esmug-demo

Get a basic Aurelia 2 app running on Azure Static Web Apps.

This project is bootstrapped by aurelia/new.

Start dev web server

npm start

Build the app in production mode

npm run build

It builds dist/*-bundle.[hash].js, updates index.html with hashed js bundle file name. To deploy to production server, copy over both the generated index.html and all the dist/* files.

For example

index.html
dist/entry-bundle.12345.js

Copy to production root folder

root_folder/index.html
root_folder/dist/entry-bundle.12345.js

Clear tracing cache

In rare situation, you might need to run clear-cache after upgrading to new version of dumber bundler.

npm run clear-cache

index.html

index.html is generated from _index.html every time npm run build runs. It is handled by dumber's onManifest() option, check gulpfile.js for details.