Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Able to view the whole source code in the production build when I run it locally using pushstate-server #1632
Able to view the whole source code of the project in the chrome debugger when running the build using
I haven't ejected the project.
Steps to reproduce:
Now go to sources and see the following path
Here you can see the whole code of the project in the production build.
The source code is not supposed to be exposed in the production build.
Can anyone confirm whether this is a bug or just an expected behavior.
The following image shows the code when I deployed the project locally using
This is expected. You can delete
There is no harm in leaving them in though in my opinion. Client code is already available to the user’s machine so there’s no secrets in it.