Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree Shaking? #38

Closed
notflip opened this issue Dec 4, 2018 · 3 comments
Closed

Tree Shaking? #38

notflip opened this issue Dec 4, 2018 · 3 comments

Comments

@notflip
Copy link

notflip commented Dec 4, 2018

Is this package optimized so that if 1 have 1 icon from 1 pack, it doesn't load all packs, or all icons in a pack? Thanks!

@wmira
Copy link
Owner

wmira commented Dec 5, 2018 via email

@thomassuckow
Copy link

In case this eslint config helps anyone:

'no-restricted-imports': [
      'error',
      {
        paths: [
          {
            name: 'react-icons-kit/entypo',
            message: 'Please use react-icons-kit/entypo/your-icon instead.',
          },
          {
            name: 'react-icons-kit/fa',
            message: 'Please use react-icons-kit/fa/your-icon instead.',
          },
          {
            name: 'react-icons-kit/feather',
            message: 'Please use react-icons-kit/feather/your-icon instead.',
          },
          {
            name: 'react-icons-kit/icomoon',
            message: 'Please use react-icons-kit/icomoon/your-icon instead.',
          },
          {
            name: 'react-icons-kit/iconic',
            message: 'Please use react-icons-kit/iconic/your-icon instead.',
          },
          {
            name: 'react-icons-kit/ikons',
            message: 'Please use react-icons-kit/ikons/your-icon instead.',
          },
          {
            name: 'react-icons-kit/ionicons',
            message: 'Please use react-icons-kit/ionicons/your-icon instead.',
          },
          {
            name: 'react-icons-kit/linea',
            message: 'Please use react-icons-kit/linea/your-icon instead.',
          },
          {
            name: 'react-icons-kit/md',
            message: 'Please use react-icons-kit/md/your-icon instead.',
          },
          {
            name: 'react-icons-kit/metrize',
            message: 'Please use react-icons-kit/metrize/your-icon instead.',
          },
          {
            name: 'react-icons-kit/noto_emoji_regular',
            message:
              'Please use react-icons-kit/noto_emoji_regular/your-icon instead.',
          },
          {
            name: 'react-icons-kit/oct',
            message: 'Please use react-icons-kit/oct/your-icon instead.',
          },
          {
            name: 'react-icons-kit/typicons',
            message: 'Please use react-icons-kit/typicons/your-icon instead.',
          },
        ],
      },
    ],

@wmira
Copy link
Owner

wmira commented Jun 20, 2020

closing this @thomassuckow thanks for the linter

@wmira wmira closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants