whalebird-desktop
whalebird-desktop copied to clipboard
Can we remove the node_modules dir, and build all dependencies into main.js and renderer.js?
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?