Sunday, 4 June 2017

Chokidar is watching files but not doing anything with the changes

I started to encounter a problem with my assets builder. I recently switched over to a windows dev setup and when I tried to run the builder it didn't any command parsed through chokidar. It does however work on Linux (Ubuntu) and OSX.

It seems that chokidar cli itself is watching the files and is also detecting changes made to them. However it doesn't execute the command that needs to run upon detecting changes

The command I am using is

chokidar './assets/sass/**/*.scss' -c 'cross-env NODE_ENV=development npm run build:sass' --initial

The command it needs to run (cross-env NODE_ENV=development npm run build:sass) does run when executed directly.



via Thomas Yates

No comments:

Post a Comment