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:
parent
1846f7ed0b
commit
6d44c22df1
@ -1,16 +1,10 @@
|
|||||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||||
import {ApplicationRef, enableProdMode} from '@angular/core';
|
import {enableProdMode} from '@angular/core';
|
||||||
import {environment} from './environments/environment';
|
import {environment} from './environments/environment';
|
||||||
import {AppModule} from './app/app.module';
|
import {AppModule} from './app/app.module';
|
||||||
import {enableDebugTools} from '@angular/platform-browser';
|
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err));
|
||||||
const applicationRef = moduleRef.injector.get(ApplicationRef);
|
|
||||||
const componentRef = applicationRef.components[0];
|
|
||||||
// allows to run `ng.profiler.timeChangeDetection();`
|
|
||||||
enableDebugTools(componentRef);
|
|
||||||
}).catch(err => console.error(err));
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"main": "./backend/index.js",
|
"main": "./backend/index.js",
|
||||||
"bin": "./backend/index.js",
|
"bin": "./backend/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"installx": "tsc && gulp build-prod",
|
"install": "tsc && gulp build-prod",
|
||||||
"build-release": "gulp build-release",
|
"build-release": "gulp build-release",
|
||||||
"build-backend": "tsc",
|
"build-backend": "tsc",
|
||||||
"pretest": "tsc",
|
"pretest": "tsc",
|
||||||
|
Loading…
Reference in New Issue
Block a user