set title

vue-cli
Pan 2018-10-25 13:41:36 +08:00
parent 1282dab996
commit f617f178f2
2 changed files with 6 additions and 2 deletions

View File

@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>vue-admin-template</title> <title><%= webpackConfig.name %></title>
</head> </head>
<body> <body>
<noscript> <noscript>
<strong>We're sorry but vue-admin-template doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->

View File

@ -29,7 +29,11 @@ module.exports = {
} }
// proxy: {} // proxy: {}
}, },
configureWebpack: { 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: { resolve: {
alias: { alias: {
'@': resolve('src') '@': resolve('src')