Fontawesome version 5
If you are looking to use font-awesome version 5, this is it!
Head over to FontAwesome to view all nice looking iconsLaravel installation
- pull in the package
$ npm install font-awesome5
- In your webpack.mix.js, your "mix.js" should copy the font-awesome fonts.
- mix.js('resources/assets/js/app.js', 'public/js')
- .version()
- .sass('resources/assets/sass/app.scss', 'public/css')
- .copy('nodemodules/font-awesome5/webfonts', 'public/assets/fonts');
- In your "app.scss" file, bring in the font-awesome css
- // Font awsome
- $fa-font-path: "/assets/fonts";
- @import "nodemodules/font-awesome5/scss/fontawesome";
- @import "nodemodules/font-awesome5/scss/fa-solid";
- @import "nodemodules/font-awesome5/scss/fa-brands";
- @import "nodemodules/font-awesome5/scss/fa-regular";
- Compile your a new "app.css"
$ npm run dev
(Thanks to Dillinger helping me format this readme)
License
MIT[FontAwesome]: <https://fontawesome.com>
[Dillinger]: <https://dillinger.io>