American express serve reload

Webpack hot reloading possible with express server?

Hello - I am developing an SPA that uses Vue, Vue Router, and Vue Hot Reloader with webpack on the front end, and Vue Resource to grab json from an express server on the backend.

I had an awesome time developing the front end with webpack and hot reloading, based off https://github.com/vuejs/vue-loader-example.

Now that I am needing to run the express server at the same time as the webpack dev server, I'm not able to run the two of them together, from one process or on the same port.

I can build the front end and then launch express to load the backend plus newly built front end, but then I hit the issue of needing to re-execute the webpack build command for every change I make to the front-end.

Has anyone here ran an express server in conjunction with webpack hot reloading?

Like this post? Please share to your friends: