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', { res.render(DIST_FOLDER + '/index.html', {
req, req,
res, res,
preboot: environment.universal.preboot,
async: environment.universal.async, async: environment.universal.async,
time: environment.universal.time, time: environment.universal.time,
baseUrl: environment.ui.nameSpace, baseUrl: environment.ui.nameSpace,

View File

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

View File

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

View File

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

View File

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