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 reloading not work #119

Closed mamtou closed 6 years ago

mamtou commented 6 years ago

rt, when I excute "npm install", and run dev, It's show

image

But when I change some data, hot reloading not work

ghost commented 6 years ago

This issue as been imported as question since it does not respect express-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/express-template/issues/c97.

gaetansenn commented 6 years ago

Hello @mamtou

Which kind of data did you changed ? a .vue file .css file ... ?

mamtou commented 6 years ago

background data file (./api/routes/users.js)

gamelaster commented 6 years ago

@mamtou for this you must restart the server. Or use this awesome express module: https://github.com/uptownhr/nuxt-express-module

mamtou commented 6 years ago

I had fixed it by nodemon, thank you guys

SixBytesUnder commented 6 years ago

Hi @mamtou Can you please share how you fixed it with nodemon? I have the same issue, and running nodemon api\index.js doesn't seem to help.

gamelaster commented 6 years ago

@SixBytesUnder Hello, for hot-reloading I recommend to use https://github.com/uptownhr/nuxt-express-module .

mamtou commented 6 years ago

@SixBytesUnder nodemon --watch api --exec “nuxt”