Closed leongrdic closed 1 year ago
The plugin is using webpack 4.46 right now. So try to update. Though I think it has worked with older webpack 4.x too.
How would you suggest I do that? I don't have webpack anywhere in my package.json
.
I found that electron-preload
has been introduced in Webpack v4.33.0 (https://github.com/webpack/webpack/releases/tag/v4.33.0)
Shouldn't this plugin's minimum webpack version be at least 4.33.0 then? (sorry if I got something wrong)
I'm getting the following error from webpack when i try to add
preload: 'src/preload.js'
to myvue.config.js
:I'm using Webpack 4.28.4 which apparently doesn't support the
electron-preload
target that's currently hardcoded in this plugin: https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/6a7b3ab3d9f4dd2aa666cbcdc53fc71689f3cccd/index.js#L683When I manually change the line above to 'electron-renderer', everything works as expected.
What are my options, how can I avoid this error and preload the file?