Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How install font-awesome via bower

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?

like image 868
silviomoreto Avatar asked May 19 '16 17:05

silviomoreto


People also ask

How do I install font awesome files?

Include Font Awesome in Your ProjectAdd a link to the /your-path-to-fontawesome/css/all. css file into the <head> of each template or page where you want to use Font Awesome. Just this once, we recommend letting things go to your head.

How do I import Font Awesome into Vue 3?

import in main. You can find main. js inside your vuejs 3 project, /src folder. //vue-app/src/main. js import { library } from "@fortawesome/fontawesome-svg-core"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { fas } from '@fortawesome/free-solid-svg-icons' library.


2 Answers

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.

like image 184
Guilherme Goto Escudero Avatar answered Oct 02 '22 17:10

Guilherme Goto Escudero


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.

like image 37
user2390799 Avatar answered Oct 02 '22 18:10

user2390799