Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(webpack_config/client): add <meta theme-color> to index.html ind…
Browse files Browse the repository at this point in the history
…ependent of FaviconsPlugin
  • Loading branch information
Metnew committed Aug 5, 2017
1 parent f568499 commit 6822200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<base href="/" />
<!-- NOTE:FaviconsWebpackPlugin doesn't generate meta content below: -->
<!-- Disable tap highlight on IE -->
<meta name="theme-color" content="<%=htmlWebpackPlugin.options.theme_color%>"/>
<meta name="msapplication-tap-highlight" content="no">
<!-- Web Application Manifest -->
<link rel="manifest" href="manifest.json">
Expand Down
1 change: 1 addition & 0 deletions webpack_config/client/webpack.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ base.plugins.push(
new HtmlWebpackPlugin({
title: config.title,
language: languageName,
theme_color: config.manifest.theme_color,
// minify: true,
template: path.resolve(config.srcCommonPath, 'index.ejs'),
filename: path.resolve(base.output.path, 'index.html'),
Expand Down

0 comments on commit 6822200

Please sign in to comment.