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

Wildly different filesize between /builds/ and website #800

Closed
mappu opened this issue Nov 8, 2019 · 2 comments
Closed

Wildly different filesize between /builds/ and website #800

mappu opened this issue Nov 8, 2019 · 2 comments

Comments

@mappu
Copy link

mappu commented Nov 8, 2019

Hi,

There is a big discrepancy between the two versions of moment-timezone-with-data available from https://momentjs.com/timezone/ versus from the /builds/ directory.

For 0.5.27:

File builds/ momentjs.com
moment-timezone-with-data.js 192 KB 920 KB
moment-timezone-with-data.min.js 182 KB 909 KB
moment-timezone-with-data-10-year-range.js 43 KB 43 KB
moment-timezone-with-data-10-year-range.min.js 33 KB 33 KB
moment-timezone-with-data-1970-2030.js 138 KB 138 KB
moment-timezone-with-data-1970-2030.min.js 128 KB 128 KB
moment-timezone-with-data-2012-2022.js 43 KB n/a
moment-timezone-with-data-2012-2022.min.js 33 KB n/a
  • Why doesn't the moment-timezone-with-data file match? What is the difference?

It doesn't match any of the other build artefacts neither.

  • Where can i get the ~900KB version of the previous 0.5.26 release?
@gilmoreorless
Copy link
Member

This seems related to #768.

@ellenaua
Copy link
Contributor

ellenaua commented Feb 23, 2020

Fixed now.

Size of latest builds

203K Feb 21 19:59 moment-timezone-with-data.js
191K Feb 21 19:59 moment-timezone-with-data.min.js

54K Feb 21 19:59 moment-timezone-with-data-10-year-range.js
42K Feb 21 19:59 moment-timezone-with-data-10-year-range.min.js

55K Feb 21 19:59 moment-timezone-with-data-2012-2022.js
42K Feb 21 19:59 moment-timezone-with-data-2012-2022.min.js

150K Feb 21 19:59 moment-timezone-with-data-1970-2030.js
137K Feb 21 19:59 moment-timezone-with-data-1970-2030.min.js

And the same size you can see in browser logs if include one of this builds into your page

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

3 participants