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

Use webpack's built in dynamic public path setting #12848

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

rtibbles
Copy link
Member

Summary

Webpack 5 introduced built in capability to set the webpack public path dynamically, to allow proper loading of code splitting, and non-inlined assets.
We couldn't use this, as it wasn't compatible with IE11, but since dropping support we can.
Removes an unused IE11 shim in the frontend also.

References

Fixes #9062

Reviewer guidance

Nothing should be different behaviour wise as a result of this. Best things to check are places where we have large assets that should be loaded separately, ensuring they are still loaded as intended.

Turn off pathinfo which we deliberately turned off for development, but accidentally left enabled for production, which is not recommended.
@github-actions github-actions bot added DEV: frontend DEV: tools Internal tooling for development labels Nov 15, 2024
Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I tested several PDFs and saw no issues
  • Ran find kolibri/ -type f -regex ".*\.\(jpe?g\|png\|gif\|svg\|eot\|woff\|ttf\|woff2\)\$" -size +10k and saw that we have a lot of fonts that are bigger - I see all of those fonts being loaded successfully (including the Mathjax coming from Perseus viewer)
  • Generally smoke tested various pieces of content and non-Latin-font languages

No issues detected on my end

@rtibbles rtibbles merged commit d0acf93 into learningequality:develop Nov 21, 2024
35 checks passed
@rtibbles rtibbles deleted the public_path branch November 21, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: frontend DEV: tools Internal tooling for development
Projects
None yet
2 participants