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> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head></head> <head>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>

View file

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