Skip to content

Commit

Permalink
refactor: use the title option in the html template, instead… (#5060)
Browse files Browse the repository at this point in the history
closes #5056
  • Loading branch information
sodatea authored and pksunkara committed Jan 13, 2020
1 parent 9ac7ce5 commit bc3e4af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%%= BASE_URL %%>favicon.ico">
<title><%= rootOptions.projectName %></title>
<title><%%= htmlWebpackPlugin.options.title %%></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= rootOptions.projectName %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but <%%= htmlWebpackPlugin.options.title %%> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-service/lib/config/app.js
Expand Up @@ -84,6 +84,7 @@ module.exports = (api, options) => {
}

const htmlOptions = {
title: api.service.pkg.name,
templateParameters: (compilation, assets, pluginOptions) => {
// enhance html-webpack-plugin's built in template params
let stats
Expand Down

0 comments on commit bc3e4af

Please sign in to comment.