-
-
Notifications
You must be signed in to change notification settings - Fork 180
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 minSize option #207
Comments
🤔 I don't think this is something bundlesize should do. It can't replace the need for functional tests |
@siddharthkp I agree that functional tests are needed but just now I had a problem when empty css files was generated in our package. That requires automated visual tests and that is not fast. |
I didn't try to imply that 😅
What would you set as the minSize for such case? |
On Mon, Apr 2, 2018, 19:49 Siddharth Kshetrapal ***@***.***> wrote:
bundlesize and maxSize names kind of imply that this package checks
everything about sizes
I didn't try to imply that 😅
I can see that 😂
I had a problem when empty css files was generated in our package. That
requires automated visual tests and that is not fast.
What would you set as the minSize for such case? > 0?
I would set it slightly less then the current size.
And I would say that if the size gets lower intentionally you have to
change maxSize to match that too, to still be able to control it.
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#207 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKoquQMeZjEl0cUiWc51Z53eTNW8kDaks5tkh5dgaJpZM4TDap4>
.
|
Would also like this feature. My project outputs a UMD library bundle with other third-party libraries included inside. It would be great for us to be alerted when our bundle size increases or decreases significantly due to a library's size changing. |
Here's another use case: If you're using webpack with aggressive bundle merging, it's nice to be alerted when a bundle size goes down so that you can reconfigure the |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
bundlesize only checks for
maxSize
What is the expected behavior?
To be able to check
minSize
too.If this is a feature request, what is motivation or use case for changing the behavior?
Would be nice to check for build errors that result in empty or drastically different bundle sizes.
The text was updated successfully, but these errors were encountered: