Skip to content

Instantly share code, notes, and snippets.

@Hendrixer
Created June 16, 2016 01:45
Show Gist options
  • Save Hendrixer/d1447f141d380a8648563c1c0f0aaced to your computer and use it in GitHub Desktop.
Save Hendrixer/d1447f141d380a8648563c1c0f0aaced to your computer and use it in GitHub Desktop.
tsc
import * as _ from 'lodash';
import {Config} from '../interfaces';
const ENV: string = process.env.NODE_ENV = process.env.NODE_ENV || 'dev';
let mainConfig: Config = {
};
export const config: Config = _.merge(mainConfig, require(`./${ENV}`).default); // what ever file is required here does not get bundled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment