Full-Stack React Projects
上QQ阅读APP看书,第一时间看更新

Nodemon

Create a nodemon.js file in your project folder, and add the following configuration. 

mern-simplesetup/nodemon.js:

{
"verbose": false,
"watch": [ "./server" ],
"exec": "webpack --mode=development --config
webpack.config.server.js
&& node ./dist/server.generated.js"
}

This configuration will set up nodemon to watch for changes in the server files during development, then execute compile and build commands as necessary.