I deploy my production build folder in netlify with below structure:
but in chrome under sources panel i can see original project directories and code. Why is that? how can I prevent this? I am using webpack. App was created via create-react-app.
I deploy my production build folder in netlify with below structure:
but in chrome under sources panel i can see original project directories and code. Why is that? how can I prevent this? I am using webpack. App was created via create-react-app.
The solution worked for me is to add below env variable in .env file in root dir. This will remove any .map files from your build/static/js folder the next time you run build.
GENERATE_SOURCEMAP=false