nklayman / vue-cli-plugin-electron-builder

Easily Build Your Vue.js App For Desktop With Electron
https://nklayman.github.io/vue-cli-plugin-electron-builder/
MIT License
4.12k stars 278 forks source link

Will vue's dependencies be packaged into the exe when packaging #1928

Closed fanchenio closed 10 months ago

fanchenio commented 1 year ago

I have this question, can anyone answer it for me?

MatthijsBurgh commented 1 year ago

Everything Vue needs is packaged.

fanchenio commented 1 year ago

Vue 需要的一切都被打包了。

image Does this exe file contain vue dependencies?

fanchenio commented 1 year ago

@MatthijsBurgh

MatthijsBurgh commented 1 year ago

@fanchenio no need to tag me. Yes, it is a standalone exe. It doesn't need any external files to run.

fanchenio commented 1 year ago

So wouldn't this cause redundant dependencies? exe itself does not need vue dependencies, only app.asar really needs vue dependencies.

MatthijsBurgh commented 1 year ago

The exe is just a bundled version of everything else in that folder. So you can check what is packaged. It should only package all the stuff it needs, no extra stuff.