aragon / ui

🦚 UI kit for decentralized apps
https://ui.aragon.org/
MIT License
343 stars 127 forks source link

Output is huge #886

Open Guitlle opened 2 years ago

Guitlle commented 2 years ago

We have been testing aragon OS framework and made our custom app. There were many problems with that alone. We noticed that when publishing the app, the GUI folder is huge (at first it was ~50MB, the second build was ~36MB). IPFS sucks for huge folders because the gateway has to clone the whole repo and takes hours for the aragon ipfs gateway to sync this custom app GUI folder. When it is finally available, the aragon client loads only 12MB from this huge dist folder.

I saw there are lots of javascript and css maps as well as all of the aragon-ui source code (~11MB).

Is there a way to export an optimized GUI that is not 3x the size of the actual app? Do we really need to do "copy-aragon-ui-assets" before building? Shouldn't there be a centralized aragon-ui (and also for other dependencies) public production repo that apps can use? The actual apps GUIs are really really small. Just a bunch of buttons and layouts. We really don't need to have a full copy and a compiled copy of aragon-ui and all of the other dependencies.

welcome[bot] commented 2 years ago

Thanks for opening your first issue in aragonUI! Someone will circle back soon ⚡