-
Notifications
You must be signed in to change notification settings - Fork 103
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
improve webpack packaging #423
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi cadence-web is so convenient web service!!
but
cadence.[hash].js
file packaged as a webpack is a single file of 6mb at build time and 1mb at web browser. I think it's a fairly large size.When operating in an internal infrastructure or platform layer such as cadence-web, It can be operated in a complex network environment.(such as VPN..etc), and the performance of web services may be an important issue.
I think improve performance with just a few config modifications of a simple webpack config. check it out below and share if you have a better way.
Tested in production environment mode.
4.split + ugly + gz compression, It can improve latency
In conclusion, if use split file+ uglfy+ gz compression, get a 50% performance boost.
The text was updated successfully, but these errors were encountered: