-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Description
Currently if the ratio of generated file size compared to original file size is greater than options.minRatio - compressed file is not being generated and no error is thrown.
Here is the check
if (result.length / originalSize > minRatio) {
return cb();
}Expected Behavior / Situation
Error is thrown.
Actual Behavior / Situation
webpack build finishes without any trace of file not being generated (no error, no message).
Modification Proposal
Default behavior:
throw error File not generated due to file size being too big.
Add option to support current behavior. Not sure about the name for example option.dropBigFiles.
Metadata
Metadata
Assignees
Labels
No labels