(3条消息) 关于vue的title标签中出现的htmlWebpackPlugin.options.title_cokoD的博客-CSDN博客 

https://blog.csdn.net/cokoD/article/details/105774521

 

如何解决

这个问题其实在vue cli的官方文档里给出了明确答案

// vue.config.js
module.exports = {
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title= '你想设置的title名字'
        return args
      })
  }
}


修改完成后记得重启vue-cli

相关文章:

  • 2022-03-08
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-07-31
  • 2022-01-28
  • 2021-05-22
  • 2022-12-23
  • 2021-04-28
相关资源
相似解决方案