美文网首页
设置生成html文件的标题

设置生成html文件的标题

作者: 扫地僧练级 | 来源:发表于2024-07-24 14:58 被阅读0次

设置生成的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