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

1.新建vue.config.js

2.代码

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

3.yarn electron:build 打包吧