kordis-leitstelle / kordis

Kordis (Koordinierungssoftware für Einsatzleitstellen/ Software for rescue operations control centres)
GNU Affero General Public License v3.0
5 stars 3 forks source link

Large bundle-size of SPA #696

Open JSPRH opened 7 months ago

JSPRH commented 7 months ago

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]
timonmasberg commented 7 months ago

Some refs: https://github.com/ant-design/ant-design-icons/issues/576 https://github.com/NG-ZORRO/ng-zorro-antd/issues/8319