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

Kit support #195

Open
st-h opened this issue Jan 24, 2022 · 2 comments
Open

Kit support #195

st-h opened this issue Jan 24, 2022 · 2 comments

Comments

@st-h
Copy link
Contributor

st-h commented Jan 24, 2022

Is your feature request related to a problem? Please describe.
The font awesome website proposes to make use of Kits when getting started: https://fontawesome.com/v6.0/docs/web/setup/quick-start
However, it seems this feature is not supported by this addon.

Describe the solution you'd like
It is possible to specify the kit url at build time and the addon pulls the necessary icons from this url. Please note that a Kit may include customised icons, that are not present in the npm libraries.

Describe alternatives you've considered
I've added custom icons (svg markup) to templates directly instead of making use of this addon.

@gzurbach
Copy link
Contributor

gzurbach commented Sep 20, 2024

FYI - I was able to use a Kit with the following approach...

First, install the kit:

npm install --save-dev '@awesome.me/kit-1234567890@latest'

Then, add this to ember-cli-build.js:

app.import('node_modules/@awesome.me/kit-1234567890/icons/js/all.js');

Finally, delete the icons.js file and add this to environment.js:

fontawesome: {
  warnIfNoIconsIncluded: false,
},

Icons can be used via the <FaIcon> component, as before.

Hope this helps!

@mkszepp
Copy link
Contributor

mkszepp commented Oct 27, 2024

I didn't used and tested.. but my PR for moving addon to an v2 could resolve your workarounds see #239

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