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 vs Rollup #37

Closed
zslabs opened this issue Sep 9, 2016 · 7 comments
Closed

Webpack vs Rollup #37

zslabs opened this issue Sep 9, 2016 · 7 comments
Labels

Comments

@zslabs
Copy link
Contributor

zslabs commented Sep 9, 2016

Hey!
Wanted to bring up more a discussion rather than an issue, but I recently read through https://nolanlawson.com/2016/08/15/the-cost-of-small-modules/ which had some interesting insights into some of the extra "stuff" Webpack can wrap around your code which can sometimes lead to larger file sizes - and wanted to get your take. About to do some integration work with Choices to replace Chosen (which relies on jQuery), but noticed the distributed size is about the same of both Chosen and jQuery combined - and it came across a little odd. Thanks!

@jshjohnson
Copy link
Collaborator

jshjohnson commented Sep 9, 2016

Hmm, jQuery minified clocks in at ~240kb and Chosen minified is 60kb as far as I'm aware.

@zslabs
Copy link
Contributor Author

zslabs commented Sep 9, 2016

Ah, I was using https://mathiasbynens.be/demo/jquery-size for reference, but was looking at the minified/gzip one; which would probably fair far better for Choices as well - sorry disregard that portion.

Let me know if you have a chance to read that article, always interested in hearing other's thoughts on the manner.

@jshjohnson
Copy link
Collaborator

You've definitely got a point. I'm going to see whether Webpack 2 makes any sizeable difference to the bundle size - I've heard mixed reports about it.

@jshjohnson
Copy link
Collaborator

Going to close this and return to it when Webpack 2 comes out of beta. Thanks

@zslabs
Copy link
Contributor Author

zslabs commented Oct 13, 2016

👍 Just as a heads up, I've been using the beta for a few weeks now and haven't run into any snags, so maybe not too far off from playing around with it!

@jshjohnson
Copy link
Collaborator

Out of interest, did you find it decreased bundle sizes?

@zslabs
Copy link
Contributor Author

zslabs commented Oct 13, 2016

TBH I never used Webpack v1 and have not had a chance to use Rollpack in prod yet, but I'll tell ya I was pleasantly surprised in comparison to the previous (more traditional Rails asset pipeline type of approach I used) that the filesize was darn-near identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants