search

Home  >  Q&A  >  body text

javascript - Can express in vue-cli be modified to restart the service?

Using the webpack project generated by vue-cli, because it already comes with express, I don’t want to build an express service myself. I write the api directly in vue-cli’s express, but now I can’t modify express. Automatically restart the express service, and I have to manually npm run dev every time, which is very tiring! I just want to ask if there is a way to automatically restart the express service after modifying express. The webpack configuration of vue-cli will not be changed. Please give me some advice! ! ! !

迷茫迷茫2811 days ago1056

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:47:32

    https://nodemon.io/

    This tool will automatically monitor your file routing changes and restart the server

    reply
    0
  • Cancelreply