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

Add package size profiling tools #103

Merged
merged 2 commits into from
Aug 17, 2017
Merged

Add package size profiling tools #103

merged 2 commits into from
Aug 17, 2017

Conversation

ai
Copy link

@ai ai commented Aug 16, 2017

I love EmojiMart. But current library size is 110 KB (gzipped and minified). IT is too big (it is half or my app bundle size).

I want to help with size optimization. But every optimization must be started from profiling.

I added two tools:

  • size-limit to prevent size regression. It will be run after test to check library size. MobX, JSS and Material UI use it too.
  • webpack-bundle-analyzer to see real content of package.

This tools always showed few ways for optimization

@ai
Copy link
Author

ai commented Aug 16, 2017

@EtienneLem here is current content of dist/emoji-mart.js

j8nhbdb

When you will accept this PR I will send next PR to reduce this size

@EtienneLem EtienneLem merged commit 191f970 into missive:master Aug 17, 2017
@EtienneLem
Copy link
Member

👍

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

Successfully merging this pull request may close these issues.

2 participants