设置生成的html文件的标题可通过修改vue.config.js的这个选项:
module.exports = {
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].title = 'Your New Title'; // 修改 title
return args;
});
}
}
设置生成的html文件的标题可通过修改vue.config.js的这个选项:
module.exports = {
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].title = 'Your New Title'; // 修改 title
return args;
});
}
}