I am using Facebook's 'create-react-app' template to create my project, after I deployed it to server, I find out that I can view the source code via:
Chrome > Console > Sources > webpack://
Is this possible to disable it? Thanks.
create-react-app
by running npm run eject
/config/webpack.config.prod.js
devtool: 'source-map',
Ironically, the annotations inside of /config/webpack.config.prod.js
admit generating sourcemaps in production "is slow but gives good results". I'm not sure what good results means but theres your fix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With