KorAP / Kalamar

:octopus: Mojolicious-based Frontend for KorAP
BSD 2-Clause "Simplified" License
7 stars 2 forks source link

Migrate from Grunt to WebPack #11

Open Akron opened 8 years ago

Akron commented 8 years ago

Grunt is a monolithic module builder, meaning all scripts are bundled in one large file. This is problematic with large dependencies that are not needed from start, e.g. libraris for tree visualization or statistic visualizations like d3.

WebPack is able to load dependencies asynchronously in chunks (using the already used AMD/commonJS formalism). So in the beginning this should load the page faster and use less memory on the client side.

Akron commented 2 years ago

Currently the goto builder for JS seems to be esbuild, so we should probably give this a try. Privately I switched to rollup.js, but I can't recommend it.

Akron commented 1 year ago

Maybe now, Vite is the way to go.

Akron commented 2 months ago

I played with Vite a bit on the weekend and it's quite nice and simple. For building it uses rollup and it seems to hide al the uglyness.