front/general: add favicon
This commit is contained in:
parent
55c5363edc
commit
7a07cc7bf7
3 changed files with 9 additions and 3 deletions
|
@ -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
BIN
static/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue