Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: add custom webpack configuration #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

improvement: add custom webpack configuration #2

wants to merge 1 commit into from

Conversation

adrian-bobev
Copy link
Contributor

This PR improves the bundling of the assets that are used by the web components (like translations, locale specific data for the calendars).

Currently (with no custom webpack configuration) they are inlined all.
However, they are language specific so you never need all of them at runtime (if we inline the CLDR data for the calendars, the bundle size grows from 135 KB to 1.6 MB). So we chose to fetch these resources dynamically at runtime.

For this option, we would have to know the URLs, so we can fetch the specific file according to the current language.

This custom configuration is explained in our sample project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant