webpack font awesome
snippet in php

webpack font awesome


// implementing font awesome 5 (fa5) in symfony 4+ applications using webpack
// firstly install fontawesome. Run `yarn add @fortawesome/fontawesome-free` on your terminal.
//Then you simply require all.css and all.js in your app.js file.
// Incase it's not clear which app.js file I'm referring to here,
// you can find the app.js file in the app-root/assets/js directory.
import '@fortawesome/fontawesome-free/js/all.js';
import '@fortawesome/fontawesome-free/css/all.css';