nodegui / vue-nodegui-starter

starter skeleton repository for vue-nodegui projects
32 stars 7 forks source link

convience method #1

Closed gregpalaci closed 4 years ago

gregpalaci commented 4 years ago

Not perfect but this reloads when there are changes (still a bit slow) -k kill the process before making a new one, "." the directory to watch, -e exlude "dist/" then the command to run.. npm dev

shubhamzanwar commented 4 years ago

Ah, this is a good thing to implement! However, there's a way of detecting these changes with webpack and rebuilding automatically. I think it's been implemented in react-nodegui-starter. Will check that and add it here. Until then, I'm opening an issue #2 for this :)

shubhamzanwar commented 4 years ago

Sorry for accidentally closing that!

gregpalaci commented 4 years ago

No problem, for sure I knew there was a better way!

shubhamzanwar commented 4 years ago

Closing this for now. I've created a pull request in the vue-loader repo to enable hot-reloading when the webpack target is node. https://github.com/vuejs/vue-loader/pull/1731

Once that's merged, we can implement HMR in vue-nodegui 🙂