uber
uber

Reputation: 5083

How can I completely hide code from people inspecting my React app with developer tools (including the 'Application' tab)?

This question is not a duplicate of this other one as it refers to the Application tab of the developer tools. I followed what was advised on the other question and the code from the Sources tab went away.

However, the production build code will still show up under the Application tab, especifically beneath Frames, top and Scripts. It is all in a single file named something like main.5b8eb24hkhr2.chunk.js.

Is there a way to hide it?

ps: my project has a Firebase backend.

Upvotes: 0

Views: 432

Answers (1)

Duncan Warukira
Duncan Warukira

Reputation: 11

The short answer is that you can't, You don't have control over that. As far as the files are included as scripts there are going to be available consider using obfuscation

Upvotes: 1

Related Questions