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 }

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

上一篇:基于 kubernetes 的动态 jenkins slave


下一篇:php通过curl传输JSON对象