Previous: Plugins, Up: Webpack Concepts [Index]
By setting the mode parameter to either
you can enable webpack’s built-in optimizations that correspond to each environment. The default value is ‘production’.
module.exports = {
mode: 'production'
};