1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing install error

This commit is contained in:
Patrik J. Braun 2019-07-21 17:26:23 +02:00
parent 1846f7ed0b
commit 6d44c22df1
2 changed files with 4 additions and 10 deletions

View File

@ -1,16 +1,10 @@
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {ApplicationRef, enableProdMode} from '@angular/core';
import {enableProdMode} from '@angular/core';
import {environment} from './environments/environment';
import {AppModule} from './app/app.module';
import {enableDebugTools} from '@angular/platform-browser';
if (environment.production) {
enableProdMode();
}
}
platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => {
const applicationRef = moduleRef.injector.get(ApplicationRef);
const componentRef = applicationRef.components[0];
// allows to run `ng.profiler.timeChangeDetection();`
enableDebugTools(componentRef);
}).catch(err => console.error(err));
platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err));

View File

@ -8,7 +8,7 @@
"main": "./backend/index.js",
"bin": "./backend/index.js",
"scripts": {
"installx": "tsc && gulp build-prod",
"install": "tsc && gulp build-prod",
"build-release": "gulp build-release",
"build-backend": "tsc",
"pretest": "tsc",