Triyugi Narayan Mani
Triyugi Narayan Mani

Reputation: 3109

How to turn off production build and use development mode in create-react-app?

First I have an app running in development mode, then I created a production build using:

yarn run build

And then served it by using:

serve -s build

Everything was working fine. But now I want to go back to development mode. How it can be done?

Upvotes: 2

Views: 6791

Answers (1)

Ericgit
Ericgit

Reputation: 7073

First delete the production code, which is build folder. if you're running Linux, Mac Os, so run the below command in the project directory,

rm -rf build

and now start the development server

yarn run start or npm run start

Upvotes: 2

Related Questions