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

Import absolute path of the component #1776

Closed
haotangio opened this issue Jun 16, 2017 · 4 comments
Closed

Import absolute path of the component #1776

haotangio opened this issue Jun 16, 2017 · 4 comments

Comments

@haotangio
Copy link

I just figured out that semantic-ui-react is so heavy, I would like to use the components like

import Button from 'semantic-ui-react/Button'

instead of

import { Button, Form, Input, Menu, Segment } from 'semantic-ui-react';

in a hope to reduce the file size. But this import doesn't work.

Do you have any suggestion?

@haotangio
Copy link
Author

This is the analytic data for size of the library, it's so big (1.3MB parsed size) and I don't want to import all of the elements to my bundle (I just use a few elements).
capture
Do you have any suggestions to deal with this issue?

@layershifter
Copy link
Member

BTW, here is detailed answer how to reduce bundle size.

@eduludi
Copy link

eduludi commented Aug 18, 2017

Why is this issue closed?

@layershifter
Copy link
Member

Because this problem has a solution and was answered many times?

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