You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Just building the Electron files not working as expected #308
Activity
subframe7536 commentedon Aug 13, 2026
electron()returnsPlugin[].You should use like this:
cmahnke commentedon Aug 13, 2026
Thanks, wouldn't it be nice if it works like documented by the Vite docs?
subframe7536 commentedon Aug 14, 2026
Since "electron()" returns a plugin array, you can directly pick the build plugin with "find":
The returned preset already contains separate plugins with "apply: 'serve'" and "apply: 'build'", so there is no need to overwrite "apply" manually.
The only way to make override work is make plugin returns a single plugin object.