Examples: enhance chunks generation
Summary
Currently, the examples generate quite some warnings from webpack:
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
shared.js (2.33 MiB)
data/paris_arrondissements.geojson (329 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
add_remove_layers (2.34 MiB)
shared.js
add_remove_layers.js
...
This is also annoying as it displays an overlay when serving the examples in dev mode...
We should let webpack do its job on chunking for better performances. This would require reworking the splitChunks configuration, as well as some glue to provide the list of such chunks to the example EJS template.
Temporary workaround
Set higher limits for entry points and assets.
Informations
- Giro3D version: 0.36.0