-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add units #3268
Add units #3268
Conversation
Preview is ready Built with commit c8e7b9e https://deploy-preview-3268--webpackjsorg-netlify.netlify.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minSize definition already mentions bytes, you can add same note to maxSize definition, the rest of the text considers you can access the definition of the prop to know more about it
Thanks for reviewing this PR. I'm going to go out on a limb here and say that I think that you interpreted that this PR was adding units to Please let me know if that's not the case, or how this PR can be otherwise improved. |
Hi @aryzing |
We can keep the PR in current shape and wait for more contributors reviews if you like |
I very much agree with you, which is why this PR adds units once. I think we can both agree that each variable's units should be stated at least once. Bear in mind that the docs aren't necessarily for a seasoned devs like yourself that are already familiar with the config, but rather for folks like me just trying to figure out how to set up webpack properly. The experience I had while browsing this section of the documents was not great: I was left puzzled not knowing exactly how to make this option work. I then invested some time using trial-and-error builds, and finally, by chance, stumbled upon the It's a single line PR that does make a positive difference. |
Thanks for elaborating, still i would suggest adding it here once: https://webpack.js.org/plugins/split-chunks-plugin/#splitchunksmaxsize |
This is a good addition, it only says "number", but it could be anything. |
I can hear my science teacher in the back of my head: "Always add units!"