How i can hide my src file on inspect because it shows the whole file structure of my app

66 Views Asked by At

enter image description here

when I click on the inspect button and go to source option then it shows my whole folder structure how can I hide it ?. please help .

if any one of you knows the solution please help because its a very high priority issue from our client side

1

There are 1 best solutions below

0
Zeeshan Ali On

I m not sure if you are looking for this or not.. I personally tried two options

  1. You can take a help of jQuery / Javascript, using which you can block or stop doing inspect in your app.

  2. "build:dev": "GENERATE_SOURCEMAP=false npm run build", by adding this flag when preparing build

Please set it for build command used for prod