added favicons

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-02-14 02:33:33 +01:00
parent 45b9891716
commit 01939b8ed8
4 changed files with 1935 additions and 4 deletions
+25 -1
View File
@@ -1,7 +1,8 @@
const webpack = require("webpack");
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
module.exports = {
mode: "development",
@@ -35,6 +36,29 @@ module.exports = {
}),
new HtmlWebpackPlugin({
template: "./index.html"
}),
new FaviconsWebpackPlugin({
logo: './public/favicon.png',
publicPath: "./",
favicons: {
appName: 'coop-platformer',
appDescription: 'Phaser3 Template',
developerName: 'Pascal Syma',
developerURL: "https://syma.dev",
background: '#000',
theme_color: '#333',
logging: true,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: true,
favicons: true,
firefox: true,
windows: true,
yandex: true
}
}
})
]
};