P
P
partyzanx2021-04-11 22:57:31
Node.js
partyzanx, 2021-04-11 22:57:31

How to use nodemon to perform multiple actions on file changes?

it is necessary that when the files change, the webpack is built and the server/index.js is reloaded, how to do this?

"scripts": {
    "build": "webpack --mode production",
    "dev": "cross-env NODE_ENV=development PORT=3000 nodemon server/index.js"
  },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-04-12
@yarkov

Use the nodemon.json configuration file for fine tuning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question