From 6784fa662c410641fe3614693f653dc5b4bb010f Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 2 Mar 2017 21:31:07 -0500 Subject: [PATCH] pass path when listening to file change event --- lib/index.js | 2 +- lib/pipeline/pipeline.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 55040224..9ea8a65b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -152,7 +152,7 @@ var Embark = { self.events.on('file-event', function(fileType, path) { if (fileType === 'asset') { self.config.reloadConfig(); - pipeline.build(Embark.abi); + pipeline.build(Embark.abi, path); } }); callback(); diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 68861c03..08016070 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -9,7 +9,7 @@ var Pipeline = function(options) { this.plugins = options.plugins; }; -Pipeline.prototype.build = function(abi) { +Pipeline.prototype.build = function(abi, path) { var self = this; for(var targetFile in this.assetFiles) {