Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active August 2, 2021 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/24de158f60467d832d91347963c3c454 to your computer and use it in GitHub Desktop.
Save nolanlawson/24de158f60467d832d91347963c3c454 to your computer and use it in GitHub Desktop.
Measure emoji-picker-element size
#!/usr/bin/env bash
mkdir -p /tmp/tmp
cd /tmp/tmp
npm init --yes
npm install emoji-picker-element@1.6.6 rollup@2.55.1 brotli-size-cli@1.0.0 terser@5.7.1
npx rollup --input ./node_modules/emoji-picker-element/index.js | npx terser -mc | npx brotli-size
npx rollup --input ./node_modules/emoji-picker-element/svelte.js | npx terser -mc | npx brotli-size
rm -fr /tmp/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment