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

Deployment / Build process: release more versions, reduce bundle size #6

Open
4 tasks
ryan-williams opened this issue Dec 28, 2021 · 0 comments
Open
4 tasks

Comments

@ryan-williams
Copy link
Member

ryan-williams commented Dec 28, 2021

  • support mode with <link/>/<script/> tags, to reduce initial bundle size
  • build prod/dev releases as different files under dist/
  • DEP0005 deprecation warning during npm run build
  • create Lambda that compiles index.html with various default configs set (or e.g. sql.js mode)

Audit/reduce bundle size

2021-12-29: I imported just the S3 client from aws-sdk (thx @jasonprado!) and that reduced the production index.html from 4MB to 1.3MB 🎉

Screen Shot 2021-12-29 at 11 33 31 AM

2021-12-27: I spent a while optimizing imports and things and shaved 35 bytes off a 4MB package. I think I webpack is already "tree-shaking" in some default way; not sure if there is a much more aggressive version that can be set up, or if I just have to cut out some dependencies.

Would be good to compare against an index.html that <link>s/<script>s in its deps (1st bullet above).

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

No branches or pull requests

1 participant