Add PWA infrastructure
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-10-21 13:55:34 -05:00
parent f6168b6b7c
commit 42d6245cf2
15 changed files with 126 additions and 11 deletions

View File

@@ -16,6 +16,8 @@ import {MonacoEditorModule} from 'ngx-monaco-editor';
import { APP_BASE_HREF, PlatformLocation } from '@angular/common';
import { MarkdownModule } from 'ngx-markdown';
import {ConnectionServiceModule} from 'ng-connection-service';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/environment';
/**
* This function is used internal to get a string instance of the `<base href="" />` value from `index.html`.
@@ -46,6 +48,7 @@ export function getBaseHref(platformLocation: PlatformLocation): string {
MonacoEditorModule.forRoot(),
MarkdownModule.forRoot(),
ConnectionServiceModule,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
],
providers: [
StatusBar,