ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.54k stars 1.82k forks source link

Possibility to use size-limit with nextjs apps #320

Closed awinogradov closed 1 year ago

awinogradov commented 1 year ago

@ai Hi! Firstly thanks for this awesome tool! I'm looking the way to prevent growing size of main bundle, page base bundles and chunks in nextjs applications. Does it possible to do with size-limit? Any examples maybe?

ai commented 1 year ago

Yes. Just run Size Limit after your build tool.