asset main.js 470 bytes [emitted] [minimized] (name: main) runtime modules 670 bytes 3 modules orphan modules 193 bytes [orphan] 2 modules ./src/index.js + 2 modules 261 bytes [built] [code generated] 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/configuration/mode/ webpack 5.84.1 compiled with 1 warning in 259 ms 什么意思
时间: 2024-02-26 19:51:47 浏览: 159
这是一个Webpack打包的结果。其中,main.js是打包后的JavaScript文件,大小为470字节,并且已经被压缩。runtime modules占用了670字节,共3个模块。orphan modules占用了193字节,共2个模块,这些模块没有被正确打包。./src/index.js是主入口文件,共有2个模块,大小为261字节。警告信息提醒用户必须设置'mode'选项,否则Webpack会默认使用'production'模式。本次Webpack的版本为5.84.1,编译时间为259毫秒。
阅读全文