npm run build 时的 warning

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 时默认是关闭提示的

 

posted @ 2019-08-30 17:58  heroljy  阅读(1634)  评论(0编辑  收藏  举报