perf: use templateParameters to refine index.html (#1156)

* 优化html模板
This commit is contained in:
happystory
2018-10-09 15:23:27 +08:00
committed by 花裤衩
parent b0bd91cd0f
commit 4780ac334f
3 changed files with 8 additions and 4 deletions

View File

@@ -58,8 +58,10 @@ const devWebpackConfig = merge(baseWebpackConfig, {
inject: true,
favicon: resolve('favicon.ico'),
title: 'vue-element-admin',
path: config.dev.assetsPublicPath + config.dev.assetsSubDirectory
})
templateParameters: {
BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory,
},
}),
]
})