feat: favicon

This commit is contained in:
cha0s 2020-07-02 02:17:31 -05:00
parent 691e068986
commit 3bedccaa3a
3 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,6 @@
const path = require('path'); const path = require('path');
const copy = require('@neutrinojs/copy');
const react = require('@neutrinojs/react'); const react = require('@neutrinojs/react');
const styles = require('@neutrinojs/style-loader'); const styles = require('@neutrinojs/style-loader');
const globImporter = require('node-sass-glob-importer'); const globImporter = require('node-sass-glob-importer');
@ -83,6 +85,14 @@ module.exports = {
AVOCADO_SERVER: false, AVOCADO_SERVER: false,
}, },
]); ]);
} },
copy({
patterns: [
{
from: 'src/common/icon.png',
to: 'icon.png',
},
],
}),
], ],
}; };

View File

@ -3,6 +3,7 @@
<html lang="<%= htmlWebpackPlugin.options.lang %>"> <html lang="<%= htmlWebpackPlugin.options.lang %>">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="icon" type="image/png" href="/icon.png"/>
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>

BIN
src/common/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB