vue-cli 3.0 webpack配置多html页面

// 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 的时候如何配置;

阅读 2.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进