Introduction
While it’s not really complicated to start a project, it’s still worth to have a look at the differences between development and production mode.
Limitations
I might run into problems when trying to run the two different modes at the same time. So it’s always better to run only one at a time.
Differences
While the dev mode is convenient, I should be aware of the fact that my application won’t entirely work the same in both modes. It’s therefore always important to check whether the application works also in prod mode as intended.
Dev Mode
The dev mode is like the name already says, for development. This way the application can be easily and fast started, since this mode is optimized for development purpose.
npm run dev Prod Mode
The prod mode thats a little bit more for starting because the application needs to be build previous.
npm run build && npm run startConclusion
Most of the time I will be running my application in the dev mode but its still good to keep in mind, that the prod mode acts differently. There are also more benefits of the prod mode, but more on that later. futureLink🖇️