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 {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));
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user