Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

manage favicon with express app

var express = require('express')
var favicon = require('serve-favicon')
var path = require('path')

var app = express()
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')))

// Add your routes here, etc.

app.listen(3000)
 
PREVIOUS NEXT
Tagged: #manage #favicon #express #app
ADD COMMENT
Topic
Name
9+4 =