From 5a8fb35c2791a921d8833beb37aa2edd5047da4c Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 24 Aug 2020 22:37:06 +0800 Subject: Remove usage of html-webpack-template. --- Timeline/ClientApp/package.json | 1 - Timeline/ClientApp/src/app/index.ejs | 29 +++++++++++++++++++++++++++++ Timeline/ClientApp/webpack.common.js | 17 +---------------- 3 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 Timeline/ClientApp/src/app/index.ejs 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 @@ + + + + + + + + + + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + +
+ + + 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: ` - - - - - - - - `, + template: 'src/app/index.ejs', title: 'Timeline', }, ]); -- cgit v1.2.3