Skip to content

React Icons Imports everything even when included 2 or 3 icons #154

@sandeepreddy19

Description

@sandeepreddy19

I had imported below icons in Create React App and I see that it included the whole library in the bundle. Attached is a screenshot. How do we get around this?

import {
FaBarChart,
FaDatabase,
FaMinus,
FaPlus,
FaStickyNote
} from 'react-icons/lib/fa'
import { IoChatboxWorking } from 'react-icons/lib/io'

screen shot 2018-07-19 at 9 58 14 am

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