A good starter for reactjs & electron-vite
Closed this issue ยท 5 comments
now, electron-vite support source code protection ๐
Hi @alex8088 , thanks and thank you so much for the great work on Electron Vite! It's a really awesome and helpful project! ๐
I'm updating the Electron Vite in the template for the latest version.
About the Source Code Protection, should I set the asar
to false
in the electron-builder.js
when bytecodePlugin is used?
@alex8088 also, sandbox
should be false
to getting this working, but the production build has the following warning The vm module of Node.js is deprecated in the renderer process and will be removed.
when bytecodePlugin is used in the preload script. ๐ค
Hi @alex8088 , thanks and thank you so much for the great work on Electron Vite! It's a really awesome and helpful project! ๐
I'm updating the Electron Vite in the template for the latest version.
About the Source Code Protection, should I set the
asar
tofalse
in theelectron-builder.js
when bytecodePlugin is used?
Do not need to set asar
to false
, you can play with the example
@alex8088 also,
sandbox
should befalse
to getting this working, but the production build has the following warningThe vm module of Node.js is deprecated in the renderer process and will be removed.
when bytecodePlugin is used in the preload script. ๐ค
Yes, I also noticed. Since the Electron 20 , the sandbox
has also been set to true by default. We may need to give developers some tips.