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 }