오류 해결) The following asset(s) exceed the recommended size limit (244 KiB)

hhhzeong·2023년 8월 7일
0

오류

빌드를 하고 나니 아래의 사진과 같은 오류가 발생했다.
번들 사이즈가 기준치(244kib)보다 커서 발생한 오류

해결

lazy loadindg을 통해서 Code Splitting를 해보기도 했지만 이상하게 그래도 해결되지 않아 적용한 방법이다
(근본적으로 오류가 완전히 해결된 것은 아님,,,ㅠ)

webpack.config.js 파일에 아래의 코드를 추가하니 오류가 사라졌다.

performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000
}

참고

https://stackoverflow.com/questions/49348365/webpack-4-size-exceeds-the-recommended-limit-244-kib

profile
어서오세요.

1개의 댓글

comment-user-thumbnail
2023년 8월 7일

좋은 글 감사합니다. 자주 올게요 :)

답글 달기