Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created December 5, 2017 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/d1d4ceb72af165e75a723580947561d4 to your computer and use it in GitHub Desktop.
Save mhkeller/d1d4ceb72af165e75a723580947561d4 to your computer and use it in GitHub Desktop.
// sass-watch.js
var watcher = require('wsk').watcher;
var watchGroup = {
serviceName: 'sass',
path: 'src/css/*.scss',
events: [
{
type: 'change',
taskFiles: 'build/tasks/sass/onChange.js',
options: {
foo: true
}
},
{
type: 'change',
taskFiles: 'build/tasks/sass/onAdd.js'
},
{
type: 'unlink',
taskFiles: 'build/tasks/sass/onUnlink.js'
}
]
};
watcher.add(watchGroup);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment