Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use font-awesome with node + express framework

Without less file is there any chance to use font-awesome in node with express framework Please help Thank You

like image 471
Lalit Mohan Avatar asked Sep 14 '25 08:09

Lalit Mohan


1 Answers

Set the public directory and include the font-awesome library.

/* Public static directory */ app.use(express.static(__dirname + '/public'));

So your app structure should be something like this,

public/ vendor/ font-awesome-4.7.0/ css/ js/ ..etc

In your html file include as usual

<link rel="stylesheet" href="../vendor/font-awesome-4.7.0/css/font-awesome.min.css">
like image 78
Bharathvaj Ganesan Avatar answered Sep 17 '25 01:09

Bharathvaj Ganesan