From bc3e4af3c0532d32ad53602546c2a91187b36948 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 13 Jan 2020 22:04:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20use=20the=20`title`=20option=20in?= =?UTF-8?q?=20the=20html=20template,=20instead=E2=80=A6=20(#5060)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #5056 --- .../@vue/cli-service/generator/template/public/index.html | 4 ++-- packages/@vue/cli-service/lib/config/app.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/@vue/cli-service/generator/template/public/index.html b/packages/@vue/cli-service/generator/template/public/index.html index 06ac04291c..3d4e96efc2 100644 --- a/packages/@vue/cli-service/generator/template/public/index.html +++ b/packages/@vue/cli-service/generator/template/public/index.html @@ -5,11 +5,11 @@ - <%= rootOptions.projectName %> + <%%= htmlWebpackPlugin.options.title %%>
diff --git a/packages/@vue/cli-service/lib/config/app.js b/packages/@vue/cli-service/lib/config/app.js index c935c291a0..f940b4ad8c 100644 --- a/packages/@vue/cli-service/lib/config/app.js +++ b/packages/@vue/cli-service/lib/config/app.js @@ -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