Skip to content

Instantly share code, notes, and snippets.

@AngelMunoz
Created December 3, 2019 02:13
Show Gist options
  • Save AngelMunoz/9b1fb8d8407510eea3d554caa1a89dd2 to your computer and use it in GitHub Desktop.
Save AngelMunoz/9b1fb8d8407510eea3d554caa1a89dd2 to your computer and use it in GitHub Desktop.
aurelia-stencil-ionic sample
/// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/>
import { Aurelia } from 'aurelia-framework'
import environment from './environment';
import { PLATFORM } from 'aurelia-pal';
import { defineCustomElements } from '@ionic/core/loader';
import { defineCustomElements as defineShared } from '@project/shared/dist/loader';
import '@ionic/core';
import { setupConfig } from '@ionic/core';
import authConfig from 'auth.config';
setupConfig({
mode: "md",
animated: true,
spinner: "dots"
});
export async function configure(aurelia: Aurelia) {
await Promise.all([defineCustomElements(window), defineShared(window)]);
/* the rest of the usual aurelia configuration */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment