daltonmenezes/electron-app

A good starter for reactjs & electron-vite

Closed this issue ยท 5 comments

A good starter for reactjs & electron-vite

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 to false in the electron-builder.js when bytecodePlugin is used?

Do not need to set asar to false, you can play with the example

@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. ๐Ÿค”

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.