Alireza Salimi
Alireza Salimi

Reputation: 91

create-react-app yarn build is shipping my source codes into build directory

It seems that when I run yarn build on the project created by create-react-app the chunk.js files will contain my original source and one can simply look at my code logic in pretty format in chrome's devtools. Am I missing something? For example look at this test website I have: https://alisalimi25.github.io/

Upvotes: 0

Views: 256

Answers (1)

Sang Au
Sang Au

Reputation: 514

Following this documentation, you should create a file named '.env' at root location, after that add "GENERATE_SOURCEMAP=false" to this file.

Hope it useful to you!

Upvotes: 1

Related Questions