Use HtmlWebpackPlugin properly.

This commit is contained in:
NI
2019-08-17 16:07:31 +08:00
parent 541e4b9233
commit 54fa0ae10e
3 changed files with 61 additions and 55 deletions

View File

@@ -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",