From 34bc20dfed47e95d6cffe3e1f61067c2bf0bc643 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Sun, 14 Oct 2018 20:04:30 +0300 Subject: [PATCH] feat(build): load favicons --- app/index.html | 18 +++++++++--------- webpack.config.js | 9 +++++++-- 2 files changed, 16 insertions(+), 11 deletions(-) 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' }) ]