// vue.config.js
module.exports = {
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].template = '/Users/username/proj/app/templates/index.html'
return args
})
}
}
为官方示例:
当我需要把 index.html 模板生成 其他。html;
然后把 login.html 生成 index.html 的时候如何配置;