Upgrade frontend dependencies, including the newest version of favicons that we use to build our favicon images

This commit is contained in:
Ni Rui
2022-09-13 16:08:36 +08:00
parent 772c9270c0
commit 80665a0142
3 changed files with 873 additions and 3464 deletions

4272
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,32 +4,31 @@
"description": "Sshwifty Web Front-end Project", "description": "Sshwifty Web Front-end Project",
"main": "", "main": "",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.18.10", "@babel/core": "^7.19.0",
"@babel/eslint-parser": "^7.18.9", "@babel/eslint-parser": "^7.18.9",
"@babel/plugin-transform-runtime": "^7.18.10", "@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.18.10", "@babel/preset-env": "^7.19.0",
"@babel/register": "^7.18.9", "@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9", "@babel/runtime": "^7.19.0",
"babel-loader": "^8.2.5", "babel-loader": "^8.2.5",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"clean-webpack-plugin": "^4.0.0", "clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0", "copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0", "css-minimizer-webpack-plugin": "^4.1.0",
"cwebp-bin": "^8.0.0", "cwebp-bin": "^8.0.0",
"eslint": "^8.21.0", "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",
"eslint-plugin-vue": "^9.3.0", "eslint-plugin-vue": "^9.4.0",
"eslint-webpack-plugin": "^3.2.0", "eslint-webpack-plugin": "^3.2.0",
"favicons": "^6.2.2", "favicons": "^7.0.0",
"favicons-webpack-plugin": "^5.0.2",
"fontfaceobserver": "^2.3.0", "fontfaceobserver": "^2.3.0",
"hack-font": "^3.3.0", "hack-font": "^3.3.0",
"html-loader": "^4.1.0", "html-loader": "^4.1.0",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"iconv-lite": "^0.6.3", "iconv-lite": "^0.6.3",
"image-minimizer-webpack-plugin": "^3.2.3", "image-minimizer-webpack-plugin": "^3.4.0",
"imagemin": "^8.0.1", "imagemin": "^8.0.1",
"imagemin-gifsicle": "^7.0.0", "imagemin-gifsicle": "^7.0.0",
"imagemin-mozjpeg": "^10.0.0", "imagemin-mozjpeg": "^10.0.0",
@@ -42,12 +41,13 @@
"prettier": "^2.7.1", "prettier": "^2.7.1",
"roboto-fontface": "^0.10.0", "roboto-fontface": "^0.10.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.3", "terser-webpack-plugin": "^5.3.6",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-loader": "^15.9.8", "vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14",
"webpack": "^5.74.0", "webpack": "^5.74.0",
"webpack-cli": "^4.10.0", "webpack-cli": "^4.10.0",
"webpack-favicons": "^1.3.8",
"xterm": "^4.19.0", "xterm": "^4.19.0",
"xterm-addon-fit": "^0.5.0", "xterm-addon-fit": "^0.5.0",
"xterm-addon-web-links": "^0.6.0" "xterm-addon-web-links": "^0.6.0"

View File

@@ -24,7 +24,7 @@ const webpack = require("webpack"),
CssMinimizerPlugin = require("css-minimizer-webpack-plugin"), CssMinimizerPlugin = require("css-minimizer-webpack-plugin"),
ImageMinimizerPlugin = require("image-minimizer-webpack-plugin"), ImageMinimizerPlugin = require("image-minimizer-webpack-plugin"),
{ VueLoaderPlugin } = require("vue-loader"), { VueLoaderPlugin } = require("vue-loader"),
FaviconsWebpackPlugin = require("favicons-webpack-plugin"), WebpackFavicons = require("webpack-favicons"),
CopyPlugin = require("copy-webpack-plugin"), CopyPlugin = require("copy-webpack-plugin"),
TerserPlugin = require("terser-webpack-plugin"), TerserPlugin = require("terser-webpack-plugin"),
{ CleanWebpackPlugin } = require("clean-webpack-plugin"), { CleanWebpackPlugin } = require("clean-webpack-plugin"),
@@ -361,30 +361,25 @@ module.exports = {
); );
}, },
}, },
new FaviconsWebpackPlugin({ new WebpackFavicons({
logo: path.join(__dirname, "ui", "sshwifty.svg"), src: path.join(__dirname, "ui", "sshwifty.svg"),
prefix: "", appName: "Sshwifty SSH Client",
cache: false, appShortName: "Sshwifty",
inject: true, appDescription: "Web SSH Client",
favicons: { developerName: "Ni Rui",
appName: "Sshwifty SSH Client", developerURL: "https://nirui.org",
appDescription: "Web SSH Client", background: "#333",
developerName: "Ni Rui", theme_color: "#333",
developerURL: "https://nirui.org", appleStatusBarStyle: "black",
background: "#333", display: "standalone",
theme_color: "#333", icons: {
appleStatusBarStyle: "black", android: { offset: 0, overlayGlow: false, overlayShadow: true },
display: "standalone", appleIcon: { offset: 5, overlayGlow: false },
icons: { appleStartup: { offset: 5, overlayGlow: false },
android: { offset: 0, overlayGlow: false, overlayShadow: true }, coast: false,
appleIcon: { offset: 5, overlayGlow: false }, favicons: { overlayGlow: false },
appleStartup: { offset: 5, overlayGlow: false }, windows: { offset: 5, overlayGlow: false },
coast: false, yandex: false,
favicons: { overlayGlow: false },
firefox: { offset: 5, overlayGlow: false },
windows: { offset: 5, overlayGlow: false },
yandex: false,
},
}, },
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({