nuxt-community / express-template

Starter template for Nuxt 2 with Express.
https://codesandbox.io/s/github/nuxt-community/express-template
1.25k stars 239 forks source link

Hot reload without backpack #85

Closed mtnptrsn closed 7 years ago

mtnptrsn commented 7 years ago

I already had an api done before I started using nuxt, therefore I didnt use es6 modules, instead I used commonJS require. For some reason that didnt work with backpack, so I started using nodemon instead for hot reload.

Is this the way to go or is there a way to make commonjs requires work with backpack? My problem with nodemon is: When saving something client side, nuxt builds multiple times and nodemon detects a change. I've even ignored .nuxt from nodemon.

Thanks in advance

This question is available on Nuxt.js community (#c66)