- Full-Stack React Projects
- Shama Hoque
- 56字
- 2021-06-25 21:44:59
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.