front/general: add favicon

This commit is contained in:
rr- 2016-03-30 16:06:51 +02:00
parent 55c5363edc
commit 7a07cc7bf7
3 changed files with 9 additions and 3 deletions

View file

@ -95,8 +95,13 @@ function bundleConfig(config) {
'./static/js/.config.autogen.json', JSON.stringify(config));
}
function copyFile(source, target) {
fs.createReadStream(source).pipe(fs.createWriteStream(target));
}
const config = getConfig();
bundleConfig(config);
bundleHtml(config);
bundleCss();
bundleJs();
copyFile('static/favicon.png', 'public/favicon.png');

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -3,9 +3,10 @@
<head>
<meta charset='utf-8'/>
<title><!-- change via config.ini --></title>
<link href='/bundle.min.css' rel='stylesheet' type='text/css'>
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Inconsolata|Droid+Sans' rel='stylesheet' type='text/css'>
<link href='/bundle.min.css' rel='stylesheet' type='text/css'/>
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Inconsolata|Droid+Sans' rel='stylesheet' type='text/css'/>
<link rel='shortcut icon' type='image/png' href='/favicon.png'/>
</head>
<body>
<div id='top-nav-holder'></div>