C
C
ckatala2019-03-20 17:15:28
React
ckatala, 2019-03-20 17:15:28

Why is the source code in production visible in the browser?

In the browser, in the Sources tab, you can see all the files of the application, although the application is built in production mode. Why?
5c924b65050f1500412679.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-03-20
@ckatala

I decided for myself (at least for create-react-app) that I put the .env file with the line https://github.com/facebook/create-react-app/issue... scripts in the react folder: { "build": "GENERATE_SOURCEMAP=false react-scripts build" } didn't work for me, for some reason, but .env works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question