dhis2 / app-platform

DHIS 2 application platform layer with inverted app control
https://platform.dhis2.nu
BSD 3-Clause "New" or "Revised" License
27 stars 16 forks source link

feat: filter build logs to summarize moment locales #875

Closed KaiVandivier closed 1 month ago

KaiVandivier commented 2 months ago

Part of LIBS-635

Moment locales can end up being 135 lines of the build output -- this uses a custom logger for Vite to filter out those lines from the build output, and instead print a static summary of the moment locales. My assumption is that the moment locales won't really change, so the static summary is okay

It feels a little weird to override the Vite logger just to make this happen, so this is just a draft for now -- curious about input

If you're curious about how Vite does its logging, it looks like it uses a Rollup plugin to asses the build output and log it

Screenshot 2024-09-02 at 10 33 41 PM
KaiVandivier commented 1 month ago

Decided against this to keep config simpler; can revisit in the future