fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

Meta: Improve the bundle #207

Closed fregante closed 3 years ago

fregante commented 3 years ago

Borrows some code from https://github.com/sindresorhus/notifier-for-github/pull/252 and https://github.com/fregante/browser-extension-template

Also hopefully cleans it up a little to help with the recent Chrome removal:

Screen Shot 2021-04-08 at 20 13 23
fregante commented 3 years ago

For the record

Before

✨ Built in 2.06s

distribution/manifest.json         1.04 KB    233ms
distribution/ghost-text.css         1.2 KB    234ms
distribution/ghost-text.js        22.66 KB    234ms
distribution/options.js            33.4 KB    233ms
distribution/icons/icon16.png        841 B     60ms
distribution/icons/icon32.png      1.81 KB     61ms
distribution/icons/icon48.png      2.85 KB     61ms
distribution/icons/icon64.png       3.9 KB     61ms
distribution/icons/icon128.png     8.79 KB    336ms
distribution/icons/icon256.png    20.27 KB    336ms
distribution/background.js        80.27 KB    509ms
distribution/options.html          3.06 KB    509ms

After

✨ Built in 4.11s

distribution/manifest.json         1.43 KB    193ms // For this actually they removed minification in a new version of Parcel
distribution/ghost-text.css          980 B    2.26s
distribution/ghost-text.js        13.45 KB    667ms
distribution/options.js           18.23 KB    667ms
distribution/icons/icon16.png        841 B     40ms
distribution/icons/icon32.png      1.81 KB     39ms
distribution/icons/icon48.png      2.85 KB     40ms
distribution/icons/icon64.png       3.9 KB     40ms
distribution/icons/icon128.png     8.79 KB    172ms
distribution/icons/icon256.png    20.27 KB    172ms
distribution/background.js        45.64 KB    877ms
distribution/options.html          2.29 KB    2.51s