chore(deps): update dependency favicons to v7 (#308)

This commit is contained in:
renovate[bot] 2022-09-12 10:25:44 +02:00 committed by GitHub
parent a1ad412b13
commit 3f2d746fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 462 additions and 2205 deletions

2627
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -45,8 +45,7 @@
"eslint": "8.23.1",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"favicons": "6.2.2",
"favicons-webpack-plugin": "5.0.2",
"favicons": "7.0.0",
"npm-run-all": "4.1.5",
"postcss-loader": "7.0.1",
"prettier": "2.7.1",
@ -58,6 +57,7 @@
"svgtofont": "3.18.0",
"webpack": "5.74.0",
"webpack-cli": "4.10.0",
"webpack-favicons": "^1.3.8",
"webpack-manifest-plugin": "5.0.0",
"webpack-remove-empty-scripts": "0.8.4"
},

View File

@ -3,7 +3,7 @@ const glob = require("glob")
const { WebpackManifestPlugin } = require("webpack-manifest-plugin")
const GitVersionPlugin = require("@eloquent/git-version-webpack-plugin")
const FaviconsWebpackPlugin = require("favicons-webpack-plugin")
const WebpackFavicons = require("webpack-favicons")
const RemoveEmptyScriptsPlugin = require("webpack-remove-empty-scripts")
const CopyPlugin = require("copy-webpack-plugin")
const SRIPlugin = require("./webpack.plugins")
@ -55,12 +55,9 @@ var config = {
]
}),
new FaviconsWebpackPlugin({
logo: path.resolve("src", "static", "favicon", "favicon.svg"),
cache: true,
prefix: "favicon/",
inject: false,
favicons: {
new WebpackFavicons({
src: path.resolve("src", "static", "favicon", "favicon.svg"),
path: "favicon/",
background: "#2f333e",
theme_color: "#2f333e",
icons: {
@ -72,7 +69,6 @@ var config = {
yandex: false,
coast: false
}
}
}),
new RemoveEmptyScriptsPlugin(),
@ -85,7 +81,11 @@ var config = {
let manifest = {}
files.forEach(function (element, index) {
if (element.name.endsWith("VERSION")) return
if (element.name.endsWith(".svg")) return
if (element.name.startsWith("fonts/")) return
if (element.name.startsWith("/favicon")) return
if (element.name == "css.js") return
Object.assign(manifest, {
[element.name]: { src: element.path }