Vue JS Is there a way to hide source code in the dist js file?

506 Views Asked by At

I want to make a in-depth logging page, but the page will expose the type of logging I am doing, but I don't want the users to be able to open up the minified vue JS script and be able to read what is being logged. do some access control stuff for vue js? (I don't mean using v-if, people can still read the source of the vuejs dist file and see the logging)

1

There are 1 best solutions below

0
JaredMcAteer On

No anything that is sent to the client can be read. You can try to obfuscate the code with a mangler but a determined person will always be able reverse engineer it. Also there is no way you can hide sending the data back to the server.