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

Webpack compress with gzip and brotli #1955

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

max0x53
Copy link
Contributor

@max0x53 max0x53 commented Dec 28, 2024

When serving through Github Pages artifacts are automatically compressed by GitHub which reduces assets/main.js from 12.15MB to 3.7MB

This PR applies this optimization at build time so that these optimizations apply to other deployments such as the docker image.

Relevant plugin documentation: https://webpack.js.org/plugins/compression-webpack-plugin/

@a3957273
Copy link
Member

Thanks for the contribution! Saves us some precious bytes 👍

@a3957273 a3957273 merged commit e1d3af2 into gchq:master Feb 11, 2025
5 of 6 checks passed
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.

2 participants