我刚开始学习Webpack,想知道这两种配置模式(开发和生产)之间的区别是什么?
当我运行webpack时,在终端上收到配置警告,提示您设置模式。我可以设置模式并消除警告,但是我对两种模式之间的差异感到困惑。
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to
'production' for this value. Set 'mode' option to 'development' or
'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn
more: https://webpack.js.org/concepts/mode/