Commit 64da6c80 by Kevin Mårtensson

Merge pull request #520 from kevva/watch-compile

Set `options.src` to render the changed file when watching
parents 2bba7936 40b352e5
......@@ -156,6 +156,7 @@ function watch(options, emitter) {
gaze.on('error', emitter.emit.bind(emitter, 'error'));
gaze.on('changed', function(file) {
options = getOptions([file], options);
emitter.emit('warn', '=> changed: ' + file);
render(options, emitter);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment