Skip to content

Import Size #73

Open
Open

Description

@MattHeslington

Hi,

I find your project pretty much invaluable and use it a lot. I'm just concerned about the file/icon import sizes. On importing just one icon into a component the Import Cost VS Code plugin informs me the import size is 1.8M (gzipped 213.5k). This is huge. Is it accurate?

Cheers,
Matt

Activity

  1. rabidkitten commented on Feb 10, 2022

    @rabidkitten

    I've seen the same thing. If I create a new react app, include the package, the build size is 43.7kB and when I add a single icon to a component, the build size increases to 278kB. If I import the icon using "import CartOutline from 'react-ionicons/lib/CartOutline';" then the build size decreases down to 58.92kB, which is still a significant increase for a single icon. Is there another way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions