Vue 自定义编译打包路径

在 vue.config.js 文件下添加 outputDir 配置项:

module.exports = {
  outputDir:"my_target_direct",
  // others configs
};

如果 vue.config.js 文件不存在,则可以在项目的跟目录下新建一个,然后再添加如上配置。

原文地址:https://www.cnblogs.com/laishenghao/p/11552826.html