Skip to content

[fix] Consider not exporting USWDS png assets as they are very large #2135

@brandonlenz

Description

@brandonlenz

ReactUSWDS Version & USWDS Version:

USWDS 2.11.2 at the time of writing

Describe the problem

hero.png is massive. Larger than all the other code and styles combined. We should not export it, in my opinion.

image

To Reproduce
Steps to reproduce the behavior:

  1. run yarn or yarn build.
  2. The build output will show the warning about the large png file. It is hero.png from USWDS

Expected behavior

The images are example images. Most consumers will use their own image. Reduce the bundle size by excluding them. Consider the release breaking in the event that some consumers may be using them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working like it's supposed to

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions