javascript - Can express in vue-cli be modified to restart the service?
迷茫
迷茫 2017-05-16 13:45:32
0
1
958

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! ! ! !

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
刘奇

https://nodemon.io/

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!