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
+1909 -3
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -30,6 +30,7 @@
"@babel/preset-env": "^7.7.1",
"babel-loader": "^8.0.6",
"clean-webpack-plugin": "^3.0.0",
"favicons-webpack-plugin": "^2.0.0",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^3.2.0",
"raw-loader": "^3.1.0",
Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

+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
}
}
})
]
};