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 individual icons #51

Open
jkjustjoshing opened this issue Oct 23, 2018 · 2 comments
Open

Import individual icons #51

jkjustjoshing opened this issue Oct 23, 2018 · 2 comments

Comments

@jkjustjoshing
Copy link
Contributor

I'm using SCSS in my project, and I want to be able to pull in individual icons to reduce my final payload size. Right now, the SCSS icon files rely on being pulled into icono.scss so the variables.scss, mixins.scss, and functions.scss files are in-scope. Importing one of them individually won't work.

I'd like to see an inversion of control, where each partial file pulls in everything it needs. This way a developer can pull in everything, or only what they need.

This could/should actually be implemented for all languages: Stylus, LESS, and even the vanilla CSS output (provide a minified master file, and then individual files for each icon type).

@jkjustjoshing
Copy link
Contributor Author

This would be a fairly straightforward change - I'd be willing to submit a PR for this if you'd consider it, @saeedalipoor.

@saeedalipoor
Copy link
Owner

I'm thinking about this structure but couldn't make time to do that, and it's great if you have time for that.
I'm open to any contributions and thank you for that.

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

No branches or pull requests

2 participants