如何在打包时拷贝自定义文件到输出目录


1.新建 vue.config.js

2.代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
(module.exports = {
  "pluginOptions": {
    "electronBuilder": {
      "builderOptions": {
        "extraResources": [
          {
            "from": "./dll/x64",
            "to": "dll/x64",
            "filter": ["**/*"]
          }
        ]
      }
    }
  }
})

3.yarn electron:build 打包吧