NextJs build output coloring
Answered
Alapaha Blue Blood Bulldog posted this in #help-forum
Alapaha Blue Blood BulldogOP
Hello!
Has NextJS changed how it colors its build output? Sizes used to bee green or red if they were considered normal or too large. Now it is always white. When I dig in the source code I see that it is expected to be white. Any ideas why and when this was changed?
Thanks
Has NextJS changed how it colors its build output? Sizes used to bee green or red if they were considered normal or too large. Now it is always white. When I dig in the source code I see that it is expected to be white. Any ideas why and when this was changed?
Thanks
const getPrettySize = (_size)=>{
const size = prettyBytes(_size);
return white(bold(size));
};Answered by joulev
they changed because even with a fresh empty project from create-next-app, it's already almost hitting the yellow colour, so it no longer makes sense since anything non-trivial you add to the app will get you out of the green zone
2 Replies
@Alapaha Blue Blood Bulldog Hello!
Has NextJS changed how it colors its build output? Sizes used to bee green or red if they were considered normal or too large. Now it is always white. When I dig in the source code I see that it is expected to be white. Any ideas why and when this was changed?
Thanks
const getPrettySize = (_size)=>{
const size = prettyBytes(_size);
return white(bold(size));
};
they changed because even with a fresh empty project from create-next-app, it's already almost hitting the yellow colour, so it no longer makes sense since anything non-trivial you add to the app will get you out of the green zone
Answer
Alapaha Blue Blood BulldogOP
Thank you! For the long time I thought my command line setup had messed something up. 😛