vue cli+electron-builder 拷贝自定义文件

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


1.新建 vue.config.js

2.代码

(module.exports = {
  "pluginOptions": {
    "electronBuilder": {
      "builderOptions": {
        "extraResources": [
          {
            "from": "./dll/x64",
            "to": "dll/x64",
            "filter": ["**/*"]
          }
        ]
      }
    }
  }
})

3.yarn electron:build 打包吧