chore: add favicon (#166)

This commit is contained in:
Christoffer Åström
2019-11-07 10:35:29 +01:00
committed by GitHub
parent 5714450063
commit 22ec51a65b
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ const babelPath = require.resolve('babel-loader');
const babelPresetEnvPath = require.resolve('@babel/preset-env');
const babelPresetReactPath = require.resolve('@babel/preset-react');
const sourceMapLoaderPath = require.resolve('source-map-loader');
const favicon = path.resolve(__dirname, '../../../docs/assets/njs.png');
const cfg = ({ srcDir, distDir, snPath, dev = false }) => {
const config = {
@@ -72,16 +73,19 @@ const cfg = ({ srcDir, distDir, snPath, dev = false }) => {
template: path.resolve(srcDir, 'eRender.html'),
filename: 'eRender.html',
chunks: ['eRender'],
favicon,
}),
new HtmlWebpackPlugin({
template: path.resolve(srcDir, 'eDev.html'),
filename: 'eDev.html',
chunks: ['eDev'],
favicon,
}),
new HtmlWebpackPlugin({
template: path.resolve(srcDir, 'eHub.html'),
filename: 'eHub.html',
chunks: ['eHub'],
favicon,
}),
],
};