S
S
s_katala2018-04-17 23:18:13
Node.js
s_katala, 2018-04-17 23:18:13

Why doesn't nodemon reload on css change?

I start the server
nodemon app.js the
server starts up everything is ok, but if I change something in scss it does not restart

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Chernyshev, 2018-04-26
@s_katala

He needs to specify that he should track these changes. To do this, a special configuration file is created (usually called `nodemon.json`) and specified as a parameter --config.
Let's assume that the files scssare in the folder ./scss. Then nodemon.jsonyou need to add the following:

"watch": [
    "scss/**"
  ]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question