设置生成的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;
});
}
}
本文标题:设置生成html文件的标题
本文链接:https://www.haomeiwen.com/subject/wgxphjtx.html
网友评论