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)); './static/js/.config.autogen.json', JSON.stringify(config));
} }
function copyFile(source, target) {
fs.createReadStream(source).pipe(fs.createWriteStream(target));
}
const config = getConfig(); const config = getConfig();
bundleConfig(config); bundleConfig(config);
bundleHtml(config); bundleHtml(config);
bundleCss(); bundleCss();
bundleJs(); bundleJs();
copyFile('static/favicon.png', 'public/favicon.png');

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

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