webpack 4: mode and optimization

webpack adds a mode option. What does that mean?