aboutsummaryrefslogtreecommitdiff
path: root/Timeline
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-24 22:37:06 +0800
committercrupest <crupest@outlook.com>2020-08-24 22:37:06 +0800
commit5a8fb35c2791a921d8833beb37aa2edd5047da4c (patch)
tree8c81004b6b4390d6509bace2542fc5bd4ac9df7d /Timeline
parent2825df8a82e9aa49ba334f3de4d0ad556675559b (diff)
downloadtimeline-5a8fb35c2791a921d8833beb37aa2edd5047da4c.tar.gz
timeline-5a8fb35c2791a921d8833beb37aa2edd5047da4c.tar.bz2
timeline-5a8fb35c2791a921d8833beb37aa2edd5047da4c.zip
Remove usage of html-webpack-template.
Diffstat (limited to 'Timeline')
-rw-r--r--Timeline/ClientApp/package.json1
-rw-r--r--Timeline/ClientApp/src/app/index.ejs29
-rw-r--r--Timeline/ClientApp/webpack.common.js17
3 files changed, 30 insertions, 17 deletions
diff --git a/Timeline/ClientApp/package.json b/Timeline/ClientApp/package.json
index 27974f72..921488cd 100644
--- a/Timeline/ClientApp/package.json
+++ b/Timeline/ClientApp/package.json
@@ -91,7 +91,6 @@
"eslint-plugin-react-hooks": "^4.0.8",
"file-loader": "^6.0.0",
"html-webpack-plugin": "^3.2.0",
- "html-webpack-template": "^6.2.0",
"http-server": "^0.12.3",
"mini-css-extract-plugin": "^0.10.0",
"pnp-webpack-plugin": "^1.6.4",
diff --git a/Timeline/ClientApp/src/app/index.ejs b/Timeline/ClientApp/src/app/index.ejs
new file mode 100644
index 00000000..49306786
--- /dev/null
+++ b/Timeline/ClientApp/src/app/index.ejs
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width,initial-scale=1.0" />
+
+ <link rel="icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
+ <link rel="manifest" href="/site.webmanifest" />
+ <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
+ <meta name="msapplication-TileColor" content="#2d89ef" />
+ <meta name="theme-color" content="#ffffff" />
+
+ <title><%= htmlWebpackPlugin.options.title %></title>
+ </head>
+ <body>
+ <noscript>
+ <strong>
+ We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
+ properly without JavaScript enabled. Please enable it to continue.
+ </strong>
+ </noscript>
+ <div id="app"></div>
+ <!-- built files will be auto injected -->
+ </body>
+</html>
diff --git a/Timeline/ClientApp/webpack.common.js b/Timeline/ClientApp/webpack.common.js
index 7d40fdce..b8e2a5f6 100644
--- a/Timeline/ClientApp/webpack.common.js
+++ b/Timeline/ClientApp/webpack.common.js
@@ -1,5 +1,4 @@
const path = require('path');
-const htmlWebpackTemplate = require('html-webpack-template');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const postcssPresetEnv = require('postcss-preset-env');
@@ -88,21 +87,7 @@ config.output
config.plugin('html').use(HtmlWebpackPlugin, [
{
- inject: false,
- template: htmlWebpackTemplate,
-
- appMountId: 'app',
- mobile: true,
-
- headHtmlSnippet: `
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
- <link rel="manifest" href="/site.webmanifest">
- <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
- <meta name="msapplication-TileColor" content="#2d89ef">
- <meta name="theme-color" content="#ffffff">
- `,
+ template: 'src/app/index.ejs',
title: 'Timeline',
},
]);