Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large bundle-size of SPA #696

Open
JSPRH opened this issue Feb 20, 2024 · 1 comment
Open

Large bundle-size of SPA #696

JSPRH opened this issue Feb 20, 2024 · 1 comment

Comments

@JSPRH
Copy link
Contributor

JSPRH commented Feb 20, 2024

Due to the Ant design import, we have quite large bundle sizes currently. This is not an immediate problem as we target desktop first and most assets are cached by the service worker and thus have to be downloaded only once. However, mid- to long-term, we should reduce the bundle size to become more mobile friendly.

Bundle sizes as of Feb 20, 2024 (#695):

> nx run spa:build:production


Initial Chunk Files   | Names         |  Raw Size | Estimated Transfer Size
styles-25KAESN3.css   | styles        | 535.20 kB |                51.94 kB
chunk-4BRXSUOO.js     | -             | 211.31 kB |                59.19 kB
polyfills-NFBJBEY3.js | polyfills     |  32.69 kB |                10.62 kB
main-DKXWGZ5T.js      | main          | 259 bytes |               259 bytes

                      | Initial Total | 779.45 kB |               122.00 kB

Lazy Chunk Files      | Names         |  Raw Size | Estimated Transfer Size
chunk-JJQPYOBH.js     | app-module    |   1.76 MB |               293.90 kB

Application bundle generation complete. [17.987 seconds]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants