To use font-awesome icons from node_modules with JavaScript, we install the font-awesome
package.
To install it, we run
npm install font-awesome --save-dev
Then we import the installed module with
@import url('../node_modules/font-awesome/css/font-awesome.min.css');
with CSS.