Previous: , Up: Webpack Concepts   [Index]


3.3.2.6 Mode

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'
};