Production vs Development - WEBPACK

Asked

Viewed 168 times

2

I would like to know the difference between the modes of "Development" and "Production" within Webpack4.

1 answer

1

The way development is used - as the name suggests - for development reasons. You have source maps of your code and greater ease when debugging, and also your code is not minified, which decreases build time

Already in the production, on the other hand, it is executed at the production level, which means that this is the final code that goes to the server. This mode executes the uglify, which minifies your files intelligently, so that the browser can read quickly and efficiently. And compile your source files into one or several minimized files. Also extracts CSS and images and of course any other fonts you’re loading with Webpack.

What specifically separates production from development depends on your preferences and requirements, which means it depends a lot on what you write in your Webpack configuration.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.