mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 13:32:43 +08:00
18 lines
642 B
Plaintext
18 lines
642 B
Plaintext
import { enableProdMode<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
import { AppModule } from './app/app.module';
|
|
import { environment } from './environments/environment';
|
|
|
|
if (environment.production) {
|
|
enableProdMode();
|
|
}
|
|
<% if(!!viewEncapsulation) { %>
|
|
platformBrowserDynamic().bootstrapModule(AppModule, {
|
|
defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %>
|
|
})
|
|
.catch(err => console.error(err));
|
|
<% } else { %>
|
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
.catch(err => console.error(err));
|
|
<% } %> |