From f617f178f2791bebcaefcead1ce3cbc1e073d074 Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 25 Oct 2018 13:41:36 +0800 Subject: [PATCH] set title --- public/index.html | 4 ++-- vue.config.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 090a595..e1d4ba9 100644 --- a/public/index.html +++ b/public/index.html @@ -5,11 +5,11 @@ - vue-admin-template + <%= webpackConfig.name %>
diff --git a/vue.config.js b/vue.config.js index 089dd61..0fa1ea9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,7 +29,11 @@ module.exports = { } // proxy: {} }, + configureWebpack: { + // We provide the app's title in Webpack's name field, so that + // it can be accessed in index.html to inject the correct title. + name: 'vue-admin-template', resolve: { alias: { '@': resolve('src')