From 54fa0ae10ef0f2b268b0d855aae67101c0b2c74c Mon Sep 17 00:00:00 2001 From: NI Date: Sat, 17 Aug 2019 16:07:31 +0800 Subject: [PATCH] Use HtmlWebpackPlugin properly. --- ui/body.html | 50 --------------------------------------- ui/index.html | 60 +++++++++++++++++++++++++++++++++++++++++++++++ webpack.config.js | 6 +---- 3 files changed, 61 insertions(+), 55 deletions(-) delete mode 100644 ui/body.html create mode 100644 ui/index.html diff --git a/ui/body.html b/ui/body.html deleted file mode 100644 index 414ba45..0000000 --- a/ui/body.html +++ /dev/null @@ -1,50 +0,0 @@ - -
-
- - -

Loading Sshwifty

- -
-

- Client is currently being loaded. Should only take a few seconds, please - wait -

- -

- Copyright © 2019 Rui NI <nirui@gmx.com> -

-

- - Source Code - - - - Release note - -

-
-
-
diff --git a/ui/index.html b/ui/index.html new file mode 100644 index 0000000..8c3e60b --- /dev/null +++ b/ui/index.html @@ -0,0 +1,60 @@ + + + + + + Sshwifty Web SSH Client + + + +
+
+ + +

Loading Sshwifty

+ +
+

+ Client is currently being loaded. Should only take a few seconds, + please wait +

+ +

+ Copyright © 2019 Rui NI <nirui@gmx.com> +

+

+ + Source Code + + + + Release note + +

+
+
+
+ + diff --git a/webpack.config.js b/webpack.config.js index beb607e..d22cdd6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -304,11 +304,7 @@ module.exports = { }), new HtmlWebpackPlugin({ inject: true, - template: require("html-webpack-template"), - bodyHtmlSnippet: fs.readFileSync( - path.join(__dirname, "ui", "body.html"), - "utf8" - ), + template: path.join(__dirname, "ui", "index.html"), meta: [ { name: "description",