Skip to content

Font awesome 5 #349

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

Closed
darkomtc opened this issue Feb 24, 2018 · 5 comments
Closed

Font awesome 5 #349

darkomtc opened this issue Feb 24, 2018 · 5 comments
Labels

Comments

@darkomtc
Copy link

Would be nice to see font awesome 5 icons soon.

@PatrickBig
Copy link

Agreed.

@xidedix
Copy link
Member

xidedix commented Jul 24, 2018

@nmatias
Copy link

nmatias commented Dec 7, 2018

I don't know if this can help someone, but i install via npm the free fontawesome 5 package on my project and when a build the vendors, the compilation give me some errors related with the webfont files path. I do some change to the regex in the build/vendors.j to work:

Original line 91:
const path = assetPath.replace(/?.*/, '').replace(/'|"/, '')

Modified line 91:
const path = assetPath.replace(/?.|#./, '').replace(/['"]/g, '')

I hope i help someone.

@mgsmus
Copy link
Contributor

mgsmus commented Jan 9, 2019

This is how I successfully installed Font Awesome 5:

  1. Remove v4 and install v5
npm remove font-awesome
npm install @fortawesome/fontawesome-free
  1. Edit vendor.js:92
    const path = assetPath.replace(/\?.*/, '').replace(/\'|\"/, '')

replace with

const path = assetPath.replace(/\?.*|#.*/, '').replace(/\'|\"/, '')
  1. Update all html files in /src
    <link href="node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet">

replace with:

<link href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"> 

then

npm run build

@stale
Copy link

stale bot commented Jun 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

5 participants