Tips to debug React production build code on local environment

Viewed 2551

We have a React application that is running on production. The app works perfectly fine locally but we are facing some problems in production mode. i.e., when we build the code locally for production, the issues are still reproducible.

Is there any way to debug production-built code locally?

1 Answers
  1. Create production build npm run build (build files into folder /bundle)
  2. npm i -g http-server and run

http-server bundler (your folder)

Related