mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 21:20:43 +00:00
chore(deps): update dependency favicons to v7 (#308)
This commit is contained in:
parent
a1ad412b13
commit
3f2d746fe2
2627
package-lock.json
generated
2627
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -45,8 +45,7 @@
|
|||||||
"eslint": "8.23.1",
|
"eslint": "8.23.1",
|
||||||
"eslint-config-prettier": "8.5.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
"eslint-plugin-prettier": "4.2.1",
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
"favicons": "6.2.2",
|
"favicons": "7.0.0",
|
||||||
"favicons-webpack-plugin": "5.0.2",
|
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
"postcss-loader": "7.0.1",
|
"postcss-loader": "7.0.1",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.7.1",
|
||||||
@ -58,6 +57,7 @@
|
|||||||
"svgtofont": "3.18.0",
|
"svgtofont": "3.18.0",
|
||||||
"webpack": "5.74.0",
|
"webpack": "5.74.0",
|
||||||
"webpack-cli": "4.10.0",
|
"webpack-cli": "4.10.0",
|
||||||
|
"webpack-favicons": "^1.3.8",
|
||||||
"webpack-manifest-plugin": "5.0.0",
|
"webpack-manifest-plugin": "5.0.0",
|
||||||
"webpack-remove-empty-scripts": "0.8.4"
|
"webpack-remove-empty-scripts": "0.8.4"
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ const glob = require("glob")
|
|||||||
|
|
||||||
const { WebpackManifestPlugin } = require("webpack-manifest-plugin")
|
const { WebpackManifestPlugin } = require("webpack-manifest-plugin")
|
||||||
const GitVersionPlugin = require("@eloquent/git-version-webpack-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 RemoveEmptyScriptsPlugin = require("webpack-remove-empty-scripts")
|
||||||
const CopyPlugin = require("copy-webpack-plugin")
|
const CopyPlugin = require("copy-webpack-plugin")
|
||||||
const SRIPlugin = require("./webpack.plugins")
|
const SRIPlugin = require("./webpack.plugins")
|
||||||
@ -55,23 +55,19 @@ var config = {
|
|||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
|
|
||||||
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/",
|
background: "#2f333e",
|
||||||
inject: false,
|
theme_color: "#2f333e",
|
||||||
favicons: {
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@ -85,7 +81,11 @@ var config = {
|
|||||||
let manifest = {}
|
let manifest = {}
|
||||||
|
|
||||||
files.forEach(function (element, index) {
|
files.forEach(function (element, index) {
|
||||||
|
if (element.name.endsWith("VERSION")) return
|
||||||
if (element.name.endsWith(".svg")) 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, {
|
Object.assign(manifest, {
|
||||||
[element.name]: { src: element.path }
|
[element.name]: { src: element.path }
|
||||||
|
Loading…
Reference in New Issue
Block a user