This project demonstrates tree shaking with Syncfusion Angular components. For further details, refer to the Syncfusion Angular Tree Shaking documentation.
- Clone the repository of the Syncfusion Angular Tree Shaking project by using the git clone command.
git clone https://github.com/SyncfusionExamples/syncfusion-angular-tree-shaking.git-
Use NPM to install the required dependencies by running the
npm installcommand. -
Run
npm run build:mapto build the project and generate source maps for analyzing the bundle size. The build artifacts will be stored in thedist/directory. Source maps slightly increase the bundle size and are not recommended for production. Here, we use source maps to analyze the bundle size of the application. -
Run
npm run analyzeto analyze the bundle size of the application. The Analyzer tool will be launched in the browser with the bundle size details.