electron-vite / electron-vite-react

:electron: Electron + Vite + React + Sass boilerplate.
https://electron-vite.github.io
MIT License
1.73k stars 210 forks source link

How do I use the byte code plugin with this React boilerplate? #155

Open ryusei-48 opened 1 year ago

ryusei-48 commented 1 year ago

Hello.

I recently tried this boilerplate to start developing an app with Electron-Vite and React.

However, it seems to be configured differently than the vanilla boilerplate, it does not use Electron-Vite and seems to consist of Vite itself and its plugins.

In this environment, the bytecode plugin, which is a feature of the Electron-Vite mainframe, cannot be used. At least I do not know how to use it.

I found a plugin for Vite itself called "vite-plugin-bytecode", but it does not seem to be in development. https://github.com/vite-plugin/vite-plugin-bytecode

What should I do?

I tried loading the Electron-Vite bytecode plugin in the current React boilerplate offensive, but it did not work.

Ultimately, I am going to initialize it with Electron-Vite's vanilla boilerplate and set up the React environment there myself. Before I do that, please let me know if there is a better way to do this.

Thank you.

caoxiemeihao commented 1 year ago
ryusei-48 commented 1 year ago

Sorry for the lack of clarity. I would appreciate it if you could provide a boilerplate with the "Electron-Vite" itself.

ikonovations commented 3 months ago

Hello.

I recently tried this boilerplate to start developing an app with Electron-Vite and React.

However, it seems to be configured differently than the vanilla boilerplate, it does not use Electron-Vite and seems to consist of Vite itself and its plugins.

In this environment, the bytecode plugin, which is a feature of the Electron-Vite mainframe, cannot be used. At least I do not know how to use it.

I found a plugin for Vite itself called "vite-plugin-bytecode", but it does not seem to be in development. https://github.com/vite-plugin/vite-plugin-bytecode

What should I do?

I tried loading the Electron-Vite bytecode plugin in the current React boilerplate offensive, but it did not work.

Ultimately, I am going to initialize it with Electron-Vite's vanilla boilerplate and set up the React environment there myself. Before I do that, please let me know if there is a better way to do this.

Thank you.

Do you have new insights?

I have developed my software and I am before release.. trying to compile it to bytecode to protect the code but in vain..

TY