Compile static title into index.html (fixes #148)

This commit is contained in:
Paul Bienkowski 2022-03-04 13:07:34 +01:00
parent a013dae3fe
commit 40d23c537e
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head></head>
<head>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>

View file

@ -131,6 +131,7 @@ module.exports = function (webpackEnv) {
plugins: [
new HtmlWebpackPlugin({
base: baseUrl,
title: 'OpenBikeSensor Portal',
meta: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',