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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With