Installing fontawesome in Webpack on WordPress
Install fontawsome in theme npm install --save @fortawesome/fontawesome-free 2. Import fontawesome js files in /src/js/app.js import '@fortawesome/fontawesome-free/js/fontawesome' import '@fortawesome/fontawesome-free/js/solid' import '@fortawesome/fontawesome-free/js/regular' import '@fortawesome/fontawesome-free/js/brands' 3. import fontawesome css @import "@fortawesome/fontawesome-free/css/all.css";