'Is it possible to execute another bash-command in-between when a specific file is changed?

For Example something like this:

{                            
  match: ["content/folder/*.css"],
  fn:    function (event, file) {
        console.bash('ls >> "../log.txt"');
  }
}  


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source