diff --git a/app/index.html b/app/index.html
index 12ae73ece..edfc4da2e 100644
--- a/app/index.html
+++ b/app/index.html
@@ -1,11 +1,11 @@
-
+
Portainer
-
+
@@ -15,13 +15,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/webpack.config.js b/webpack.config.js
index fc95562bd..c6ce61fa9 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -3,6 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackBuildNotifierPlugin = require('webpack-build-notifier');
const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
const { ProvidePlugin } = require('webpack');
+const npmPackage = require('./package.json');
module.exports = {
entry: './app/__module.js',
@@ -52,7 +53,11 @@ module.exports = {
mode: 'development',
plugins: [
new HtmlWebpackPlugin({
- template: './app/index.html'
+ template: './app/index.html',
+ templateParameters: {
+ name: npmPackage.name,
+ author: npmPackage.author
+ }
}),
new WebpackBuildNotifierPlugin({
title: 'My Project Webpack Build',
@@ -63,7 +68,7 @@ module.exports = {
new ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
- 'window.jQuery': 'jquery',
+ 'window.jQuery': 'jquery'
// angular: 'angular'
})
]