When a new project is created with angular-cli by default it is not enabled to run in productio.mode How can it be enabled?
The generated main.ts file is as follows:
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
console.log("environment.production:" + environment.production);
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule);
And the result of printing on the log is:
environment.production:false
How would the environment variable for production be enabled?