I tested packaging our extension using the built-in tool in Chrome browser vs. this module and the size difference can be pretty large -- in our case it's ~700kB smaller when using the Chrome browser.
After short investigation, I have found out that if you pass level 9 ("best compression") to zlib, size of the package will be reduced to similar size. The CRX will load just fine in Chrome browser.
For now, I have hard patched the module in node_modules folder but this is not ideal.
I tested packaging our extension using the built-in tool in Chrome browser vs. this module and the size difference can be pretty large -- in our case it's ~700kB smaller when using the Chrome browser.
After short investigation, I have found out that if you pass level 9 ("best compression") to zlib, size of the package will be reduced to similar size. The CRX will load just fine in Chrome browser.
For now, I have hard patched the module in
node_modules
folder but this is not ideal.https://github.com/oncletom/crx/blob/master/src/index.js#L130