Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created Jul 13, 2018
Embed
What would you like to do?
import { enableProdMode } from "@angular/core";
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { AppModule } from "./app.module";
let config: { node_env: string } = require("../../env-config.json");
if (config.node_env.trim() === "production") {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule).catch((error) => { console.error(error); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment