replce webpack-remove-empty-scripts by webpack-favicons
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Robert Kaussow 2022-09-12 10:25:36 +02:00
parent 7e6b30e545
commit f289f70fef
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 4154 additions and 394 deletions

4508
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
"shx": "0.3.4", "shx": "0.3.4",
"webpack": "5.74.0", "webpack": "5.74.0",
"webpack-cli": "4.10.0", "webpack-cli": "4.10.0",
"webpack-remove-empty-scripts": "0.8.4" "webpack-favicons": "^1.3.8"
}, },
"overrides": { "overrides": {
"colors": "1.4.0" "colors": "1.4.0"

View File

@ -2,7 +2,7 @@ const path = require("path")
const yaml = require("js-yaml") const yaml = require("js-yaml")
const fs = require("fs") const fs = require("fs")
const FaviconsWebpackPlugin = require("favicons-webpack-plugin") const WebpackFavicons = require("webpack-favicons")
const CopyPlugin = require("copy-webpack-plugin") const CopyPlugin = require("copy-webpack-plugin")
let config let config
@ -30,26 +30,22 @@ module.exports = {
] ]
}), }),
new FaviconsWebpackPlugin({ new WebpackFavicons({
logo: path.resolve("src", "static", "favicon", "favicon.svg"), src: path.resolve("src", "static", "favicon", "favicon.svg"),
cache: true, path: "favicon/",
prefix: "favicon/", appName: config.title,
inject: false, appShortName: config.title.concat(" - ", config.params.subtitle),
favicons: { appDescription: config.params.description,
appName: config.title, background: "#2f333e",
appShortName: config.title.concat(" - ", config.params.subtitle), theme_color: "#2f333e",
appDescription: config.params.description, icons: {
background: "#2f333e", android: { offset: 10 },
theme_color: "#2f333e", appleIcon: { offset: 10 },
icons: { appleStartup: { offset: 10 },
android: { offset: 10 }, favicons: true,
appleIcon: { offset: 10 }, windows: { offset: 10 },
appleStartup: { offset: 10 }, yandex: false,
favicons: true, coast: false
windows: { offset: 10 },
yandex: false,
coast: false
}
} }
}) })
] ]