ci010 / electron-vue-next

A starter template for using vue-next with the electron.
https://ci010.github.io/electron-vue-next/
191 stars 27 forks source link

Build process does not stop when the electron window is closed #13

Closed cawa-93 closed 3 years ago

cawa-93 commented 3 years ago

I faced a strange problem. If you run the npm run dev command and then close the electron window yourself, the build process does not stop and you have to kill it with CTRL+C.

In my experience, this is expected behavior.

I did a little research and it looks like the rollup watcher keeps watching the changes in the main files.

I'm not sure if this is a planned behavior. Just in case, this patch fixed the problem for me. Although I'm not sure if this is the best solution.

ci010 commented 3 years ago

Yes, in original electron-vue, once the app close, all the dev servers are closed. Personally, I feel neutral this behavior, but I guess more people think the dev server should be quit after app closed. I'm glad to receive that patch 😄 .