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

Looking for ideas for decreasing the webpack bundle Size #328

Open
bdougie opened this issue Mar 28, 2017 · 4 comments
Open

Looking for ideas for decreasing the webpack bundle Size #328

bdougie opened this issue Mar 28, 2017 · 4 comments

Comments

@bdougie
Copy link
Contributor

bdougie commented Mar 28, 2017

When you run npm run build you can see the bundle size is ~1.5mb parsed and ~480kb gzipped. I am curious if there are any experts on webpack that help with solutions for decreasing the bundle size.

screenshot 2017-03-28 10 15 29

I don't believe it would be realistic to do so, but I did experiment with Preact and saw a significant decrease in size. I did not explore this fully, but wanted to field this issue to see if anyone has some quick wins.

with preact 👇🏾
screenshot 2017-03-28 10 32 45

@bdougie bdougie changed the title Looking for ideas for decreasing the bundle Size is 1.5mb Looking for ideas for decreasing the webpack bundle Size Mar 28, 2017
@peet86
Copy link

peet86 commented Apr 2, 2017

Actually 480kb gzipped is not that bad.. :)

@erquhart
Copy link
Contributor

erquhart commented Apr 4, 2017

Good pointers @peet86 - if you're up for giving either of those a shot it'd be a welcome improvement :)

@tech4him1
Copy link
Contributor

tech4him1 commented Apr 20, 2017

Slightly beside the point here, but wouldn't it be better, if you guys are hosting it on HTTP/2, to bundle the netlify-cms code separately from all its dependencies for caching purposes?

EDIT: No longer applicable, as the CMS is not hosted on netlify.com. Plus, some people will use the NPM package directly, instead of a CDN.

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

5 participants