mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-30 21:47:30 +00:00
Reorganize templates into dir structure matching 'dotnet new' templates
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import 'isomorphic-fetch';
|
||||
import { Aurelia, PLATFORM } from 'aurelia-framework';
|
||||
import { HttpClient } from 'aurelia-fetch-client';
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import 'bootstrap';
|
||||
declare const IS_DEV_BUILD: boolean; // The value is supplied by Webpack during the build
|
||||
|
||||
export function configure(aurelia: Aurelia) {
|
||||
aurelia.use.standardConfiguration();
|
||||
|
||||
if (IS_DEV_BUILD) {
|
||||
aurelia.use.developmentLogging();
|
||||
}
|
||||
|
||||
new HttpClient().configure(config => {
|
||||
const baseUrl = document.getElementsByTagName('base')[0].href;
|
||||
config.withBaseUrl(baseUrl);
|
||||
});
|
||||
|
||||
aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app/components/app/app')));
|
||||
}
|
||||
Reference in New Issue
Block a user