Skip to content

Feature: Check against total file size #205

@TheAlexLichter

Description

@TheAlexLichter

Do you want to request a feature or report a bug?

A feature

What is the current behavior?

Bundlesize currently checks if each file is below the threshold.

What is the expected behavior?

With a flag set (e.g. checkAgainstTotal), bundlesize should sum up the size of all (selected) files and check it against a threshold.

If this is a feature request, what is motivation or use case for changing the behavior?

In times of code splitting, it can happen that you have 100 files <3kb, but in the end, this still means that the app is large.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions