Replace favicons-webpack-plugin to webapp-webpack-plugin
This commit is contained in:
1711
package-lock.json
generated
1711
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -20,7 +20,6 @@
|
||||
"eslint-loader": "^2.2.1",
|
||||
"eslint-plugin-prettier": "^3.1.0",
|
||||
"eslint-plugin-vue": "^5.2.3",
|
||||
"favicons-webpack-plugin": "0.0.9",
|
||||
"file-loader": "^4.1.0",
|
||||
"html-loader": "^0.5.5",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
@@ -37,6 +36,7 @@
|
||||
"vue": "^2.6.10",
|
||||
"vue-loader": "^15.7.1",
|
||||
"vue-template-compiler": "^2.6.10",
|
||||
"webapp-webpack-plugin": "^2.7.1",
|
||||
"webpack": "^4.36.1",
|
||||
"webpack-cli": "^3.3.6",
|
||||
"webpack-dev-server": "^3.7.2",
|
||||
|
||||
@@ -23,7 +23,7 @@ const webpack = require("webpack"),
|
||||
MiniCssExtractPlugin = require("mini-css-extract-plugin"),
|
||||
OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin"),
|
||||
VueLoaderPlugin = require("vue-loader/lib/plugin"),
|
||||
FaviconsWebpackPlugin = require("favicons-webpack-plugin"),
|
||||
WebappWebpackPlugin = require("webapp-webpack-plugin"),
|
||||
ManifestPlugin = require("webpack-manifest-plugin"),
|
||||
CopyPlugin = require("copy-webpack-plugin"),
|
||||
TerserPlugin = require("terser-webpack-plugin"),
|
||||
@@ -286,15 +286,25 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
},
|
||||
new FaviconsWebpackPlugin({
|
||||
new WebappWebpackPlugin({
|
||||
logo: path.join(__dirname, "ui", "sshwifty.png"),
|
||||
prefix: "[hash]-",
|
||||
emitStats: false,
|
||||
persistentCache: false,
|
||||
title: "Sswifty"
|
||||
prefix: "",
|
||||
cache: false,
|
||||
favicons: {
|
||||
appName: "Sswifty",
|
||||
appDescription: "Web SSH Client",
|
||||
developerName: "Rui NI",
|
||||
developerURL: "https://vaguly.com",
|
||||
background: "#333",
|
||||
theme_color: "#333",
|
||||
icons: {
|
||||
coast: false,
|
||||
yandex: false
|
||||
}
|
||||
}
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
inject: false,
|
||||
inject: true,
|
||||
template: require("html-webpack-template"),
|
||||
bodyHtmlSnippet: fs.readFileSync(
|
||||
path.join(__dirname, "ui", "body.html"),
|
||||
@@ -304,10 +314,6 @@ module.exports = {
|
||||
{
|
||||
name: "description",
|
||||
content: "Connect to a SSH Server from your web browser"
|
||||
},
|
||||
{
|
||||
name: "theme-color",
|
||||
content: "#333333"
|
||||
}
|
||||
],
|
||||
mobile: true,
|
||||
|
||||
Reference in New Issue
Block a user