refactor(hooks): replace hooks to ng-cli fileReplacements logic

This commit is contained in:
Heo Sangmin
2018-05-19 18:55:27 +09:00
parent 7fbc68cd1f
commit c940037211
14 changed files with 36 additions and 318 deletions

View File

@@ -1,7 +1,7 @@
import { Component } from '@angular/core';
import { ElectronService } from './providers/electron.service';
import { TranslateService } from '@ngx-translate/core';
import { AppConfig } from './app.config';
import { AppConfig } from '../environments/environment';
@Component({
selector: 'app-root',

View File

@@ -1,23 +0,0 @@
import { CONF_LOCAL } from '../environments/environment.local';
import { CONF_DEV } from '../environments/environment.dev';
import { CONF_PROD } from '../environments/environment.prod';
const ENV = 'prod';
const LOCAL: String = 'local';
const DEV: String = 'dev';
const PROD: String = 'prod';
let conf: any;
console.log('Env', ENV);
if (ENV === PROD) {
conf = CONF_PROD;
} else if (ENV === DEV) {
conf = CONF_DEV;
} else {
conf = CONF_LOCAL;
}
export const AppConfig = Object.assign({}, conf);