afford production disable preboot

This commit is contained in:
William Welling
2022-02-16 13:43:48 -06:00
parent e4f483c308
commit b149cf2d77
9 changed files with 37 additions and 19 deletions

View File

@@ -30,7 +30,9 @@ const main = () => {
if (environment.production) {
enableProdMode();
}
if (hasValue(environment.universal) && environment.universal.preboot) {
return bootstrap();
} else {
@@ -47,7 +49,7 @@ const main = () => {
};
// support async tag or hmr
if (hasValue(environment.universal) && environment.universal.preboot === false) {
if (hasValue(environment.universal) && !environment.universal.preboot) {
main();
} else {
document.addEventListener('DOMContentLoaded', main);