This repository contains two Angular projects with the same dependencies, demonstrating two different approaches to bootstrapping the application. If you've read the related article, here you can personally test the final bundle size of the two projects.
- classic/: An Angular app using the traditional
bootstrapApplicationmethod in themain.tsfile. - fast/: An Angular app using
ngx-fastbootfor an optimized bootstrap focused on performance.
If you don't have pnpm, you can install it by running:
npm install -g pnpm-
Clone this repository:
git clone https://github.com/KernelPanic92/ngx-fastboot-medium-examples.git
-
Navigate into the project directory:
cd ngx-fastboot-medium-examples -
Install dependencies for both projects:
pnpm install
You can build both projects to compare their final bundle sizes. Each project can be built and run separately:
This command builds the project that uses the traditional bootstrapApplication:
cd classic
pnpm run buildThis command builds the project that uses ngx-fastboot:
cd fast
pnpm run buildAfter running the build commands, you will find the compiled bundles output in the terminal console. You can compare the size and content of the files to understand the differences between the two bootstrapping approaches.
Feel free to open a pull request or report issues in the Issues section if you'd like to contribute.
This project is licensed under the MIT License. See the LICENSE file for details.