Skip to content

Commit

Permalink
display name fix for html
Browse files Browse the repository at this point in the history
  • Loading branch information
technophilic committed Oct 1, 2020
1 parent fe03a83 commit dc52ea4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion electron/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<base href="./">
<title>Test</title>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<div id="react-app" style="
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<base href="/">
<title>Test</title>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<style>
Expand Down
8 changes: 5 additions & 3 deletions webpack.commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ module.exports = {
plugins: [
// Using html webpack plugin to utilize our index.html
new HtmlWebpackPlugin({
title: configVars['$config.displayName'],
template: isElectron ? 'electron/index.html' : 'web/index.html',
}),
isDevelopment && new ReactRefreshWebpackPlugin({
overlay: false,
}),
isDevelopment &&
new ReactRefreshWebpackPlugin({
overlay: false,
}),
].filter(Boolean),
resolve: {
alias: {
Expand Down

0 comments on commit dc52ea4

Please sign in to comment.