whalebird-desktop icon indicating copy to clipboard operation
whalebird-desktop copied to clipboard

Can we remove the node_modules dir, and build all dependencies into main.js and renderer.js?

Open tantan1 opened this issue 2 years ago • 0 comments

Describe

When I build a electron package when npm run package:win64, the app.asar in electron is 158MB, and my dist code is just 5MB. When I extract app.asar, I saw the whole node_modules is in app.asar.

Why

Usually, in web, we combine our js and the js in node_modules in to one and compress, it can reduce the package size greatly. Can we remove the node_modules dir, and build all dependencies into main.js and renderer.js?

tantan1 avatar Jul 01 '22 05:07 tantan1