webpack warning : 入口点大小超过了建议的限制(244kB)

报错:

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  bundle.js (1.55 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (1.55 MiB)
      bundle.js

解决:
在webpack配置文件“webpack.config.js”中添加:

performance: { hints: false }
转载: http://t.zoukankan.com/xym4869-p-13328650.html
posted @ 2022-03-31 16:04  文学少女  阅读(560)  评论(0编辑  收藏  举报