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

4500
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,12 +30,9 @@ 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/",
inject: false,
favicons: {
appName: config.title, appName: config.title,
appShortName: config.title.concat(" - ", config.params.subtitle), appShortName: config.title.concat(" - ", config.params.subtitle),
appDescription: config.params.description, appDescription: config.params.description,
@ -50,7 +47,6 @@ module.exports = {
yandex: false, yandex: false,
coast: false coast: false
} }
}
}) })
] ]
} }