Hello!
If you build the Agama web frontend you will get a quite huge index.js file
(~300KB
gzip compressed, ~1.3MB uncompressed).
Have you ever wondered what's inside or how much space is used by libraries or
embedded icons?
Then check
https://agama-bundle.surge.sh/
(Warning: a large screen is required to see it well :-))
It has been generated by the "source-map-explorer" tool, if you want to
generate it locally then follow these steps:
# go to the web frontend sources
cd agama/web
# build the production bundle
NODE_ENV=production npm run build
# install the source-map-explorer tool
npm install --no-save source-map-explorer
# uncompress the index.js.gz file (and keep the original)
gunzip -k dist/index.js.gz
# analyze the file
npx source-map-explorer dist/index.js --html bundle.html
# open it in a browser
xdg-open bundle.html
# cleanup
rm dist/index.js bundle.html
npm uninstall source-map-explorer
See more details in https://github.com/danvk/source-map-explorer
Enjoy! :-)
Ladislav
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8