How install font-awesome via bower
Asked Answered
R

5

36

I have just installed font-awesome via bower:

bower install font-awesome --save

And it appears to not add the CSS at the bower build. How can I install it?

Resin answered 19/5, 2016 at 17:54 Comment(0)
B
75

When you use font-awesome via bower it does not include the CSS when you build it. Try using:

bower install components-font-awesome --save

It should work just fine.

Becoming answered 19/5, 2016 at 17:56 Comment(2)
why are the CSS files not minified?Carri
What is the proper css file to link? it seems that my FA unicode is not working on my end.Belgravia
S
9

In bower.json, add lines in dependencies ("components-font-awesome"):

{
  "name": "example",
  "version": "0.0.1",
  "dependencies": {
    "jquery": "~2.1.1",
    "bootstrap-sass-official": ">=3.3.0",
    "components-font-awesome": "^4.7.0"
  }
}

Run bower install, You will get files in the bower_components folder.

Stafani answered 22/7, 2017 at 20:55 Comment(2)
jquery and bootstrap-sass-official are not necessary.Stafani
This answer is an easier and provides more control over the font awesome version. And the comment about not needing jquery and bootstrap is correct.Refusal
D
0
  • bower install components-font-awesome --save Use this command to install font-awesome via bower.
  • If the above command doesn't work that is it does not include the CSS when you build it. Try using the following commands.
  • bower install components-font-awesome --save
  • bower install font-awesome --save
Deckhand answered 15/1, 2021 at 18:55 Comment(0)
W
0

check the latest or specific version of font awesome you want to install form following link https://libraries.io/bower/Font-Awesome/tags?page=1

current latest version of fontaswesome is 5.15.3

https://libraries.io/bower/Font-Awesome/5.15.3

bower install Font-Awesome#5.15.3

people also like version 4 as well

https://libraries.io/bower/Font-Awesome/v4.7.0

bower install Font-Awesome#v4.7.0
Wertheimer answered 2/4, 2021 at 3:33 Comment(0)
L
-5

This should be following command:

 bower install fontawesome --save
Linskey answered 23/2, 2017 at 5:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.