最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - How to Compile a React Web App into a Binary Executable? - Stack Overflow

programmeradmin1浏览0评论

I am trying to compile a React web app into a standalone binary executable to protect the source code before delivering it to a client.

Currently, I have tried:

Obfuscating the JavaScript code using javascript-obfuscator.

Using pkg to compile it into a binary, but it seems to work only for Node.js backend apps, not for front-end React apps.

Multi-stage Docker builds with a distroless image, but this only helps secure the container, not convert React into a binary.

My Questions:

Is there any way to truly compile a React app into a binary (similar to how Electron or Flutter compile apps)?

If not, what are the best practices to secure the React source code before deploying it?

Any guidance or alternative approaches would be greatly appreciated!

发布评论

评论列表(0)

  1. 暂无评论