import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { EJ_BUTTON_COMPONENTS } from 'ej-angular2/src/ej/button.component';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent, EJ_BUTTON_COMPONENTS
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { } |
CLI Project |
Production Build Size |
Initial CLI Project(Without Syncfusion Angular Component) |
234 KB |
CLI Project with Individual Schedule Component |
2.08 MB |
CLI Project with EJAngular2Module |
17.9MB |
ng build --prod |
Hi Matt Shanahan,
Thanks for contacting Syncfusion support.
You can import required Syncfusion Angular component from ej-angular2 package to reduce the build size. Refer to the below code snippet.
import { BrowserModule } from '@angular/platform-browser';import { NgModule } from '@angular/core';import { EJ_BUTTON_COMPONENTS } from 'ej-angular2/src/ej/button.component';import { AppComponent } from './app.component';@NgModule({declarations: [AppComponent, EJ_BUTTON_COMPONENTS],imports: [BrowserModule],providers: [],bootstrap: [AppComponent]})export class AppModule { }
Refer below links to know more about importing required components and reduce the build size.
Please let us know if you need further assist on this.
Regards,Abinaya S