replce webpack-remove-empty-scripts by webpack-favicons
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
7e6b30e545
commit
f289f70fef
4508
package-lock.json
generated
4508
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user