zer0bin-dev / zer0bin

🖊️ // Just a place to paste
https://zer0b.in
MIT License
94 stars 9 forks source link

Hide button #45

Closed mellowmarshe closed 2 years ago

ThatOneCalculator commented 2 years ago

Will review in a couple hrs at most 👍

ThatOneCalculator commented 2 years ago

Turns out this is unrelated and instead a problem with how we were using highlight.js. We were accidentally importing all languages instead of the common ones. See: https://github.com/highlightjs/highlight.js#nodejs-on-the-server

Very proud to announce the frontend is 60% lighter.

$ yarn build  
✨ Built in 4.50s

dist/index.html                2.58 KB    107ms
dist/favicon.34e1dad6.ico      4.19 KB     99ms
dist/index.bbad0abf.css        4.14 KB     14ms
dist/index.d759ba72.css         4.3 KB     21ms
dist/index.2d5cdad3.js       307.27 KB    1.69s
dist/index.ec9c2817.js       266.72 KB    1.44s