removing proboot option from config

This commit is contained in:
lotte
2020-08-12 14:41:30 +02:00
parent 4b11e1d9cd
commit 3f4a0d1fd9
5 changed files with 1 additions and 5 deletions

View File

@@ -165,7 +165,6 @@ function ngApp(req, res) {
res.render(DIST_FOLDER + '/index.html', {
req,
res,
preboot: environment.universal.preboot,
async: environment.universal.async,
time: environment.universal.time,
baseUrl: environment.ui.nameSpace,

View File

@@ -1,7 +1,6 @@
import { Config } from './config.interface';
export interface UniversalConfig extends Config {
preboot: boolean;
async: boolean;
time: boolean;
}

View File

@@ -121,7 +121,6 @@ export const environment: GlobalConfig = {
},
// Angular Universal settings
universal: {
preboot: true,
async: true,
time: false
},

View File

@@ -105,7 +105,6 @@ export const environment: Partial<GlobalConfig> = {
},
// Angular Universal settings
universal: {
preboot: true,
async: true,
time: false
},

View File

@@ -45,7 +45,7 @@ function addGoogleAnalytics() {
}
// support async tag or hmr
if (hasValue(environment.universal) && environment.universal.preboot === false) {
if (environment.production === false) {
bootloader(main);
} else {
document.addEventListener('DOMContentLoaded', () => bootloader(main));