npm run build 时的 warning

2023-05-25,,

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.

webpack 提示打包的入口文件体积超过了推荐的 244kb,即使做了分包,这个提示还是会存在,而且有了warning就不显示building的时长

在 vue.config.js 中配置下 webpack,关闭build时的这个提示,vue-cli 默认在 npm run serve 时默认是关闭提示的

npm run build 时的 warning的相关教程结束。

《npm run build 时的 warning.doc》

下载本文的Word格式文档,以方便收藏与打印。