concept production in category isomorphic web applications

This is an excerpt from Manning's book Isomorphic Web Applications: Universal Development with React.
devDependencies includes build tools such as Babel and webpack. Packages in the devDependencies section of package.json don’t get installed when the NODE_ENV variable is set to production. See table 2.1 for additional information.
The JavaScript ecosystem provides many great libraries and tools to make writing applications faster and easier for developers. To take advantage of them, you need to have tooling in place that can compile, transform, and prepare your code for production. Enter webpack, a build tool that’s entirely configuration driven.
I’m going to be completely honest with you: webpack isn’t an intuitive tool. I found it frustrating to work with at first. But it’s extremely powerful and worth learning. Webpack gives you the ability to include any JavaScript code in your build, even libraries that haven’t been set up to run in the browser (for example, npm packages). It also can take care of many other build steps, including compiling your code with Babel and preparing your code for production. This chapter covers all the basics you need in order to have a good workflow in your isomorphic project.
In order to end up with production output, you will use some additional plugins to prepare the code. The following listing shows how to create a webpack configuration file that is ready for production.
Listing 5.15. Production build—config/prod.config.js
var baseConfig = require('./base.config.js'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var injectEnvironment = new webpack.DefinePlugin({ __ENV__: JSON.stringify("prod") #1 }); module.exports = Object.assign(baseConfig, { output: { filename: 'prod-bundle.js' #2 }, plugins: [ new webpack.optimize.UglifyJsPlugin({ #3 compress: { warnings: false, drop_console: true } }), new HtmlWebpackPlugin({ title: "Calendar App", filename: 'prod-bundle.html' #4 }) injectEnvironment ] }); #1 Inject prod environment variable. #2 Change bundle name for current environment. #3 Uglify your code—this both compresses and uglifies the code. #4 Change filename of outputted HTML file. !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":5,\"ch\":60},{\"line\":5,\"ch\":62}],[{\"line\":26,\"ch\":0},{\"line\":26,\"ch\":2}],[{\"line\":9,\"ch\":60},{\"line\":9,\"ch\":62}],[{\"line\":27,\"ch\":0},{\"line\":27,\"ch\":2}],[{\"line\":12,\"ch\":60},{\"line\":12,\"ch\":62}],[{\"line\":28,\"ch\":0},{\"line\":28,\"ch\":2}],[{\"line\":20,\"ch\":60},{\"line\":20,\"ch\":62}],[{\"line\":29,\"ch\":0},{\"line\":29,\"ch\":2}]]"} !@%STYLE%@!Plugins have many use cases and can help you with everything from configuration to uglifying your output. For this reason, several plugins ship with webpack that can help you prepare your build for production. In addition to the plugins shown in the preceding listing, you can read about other webpack plugins on the webpack site (https://webpack.js.org/configuration/plugins/) and the npm site (www.npmjs.com/search?q=webpack+plugin). As of the latest version of webpack, deduping module includes and occurrence ordering are default behaviors.