pass path when listening to file change event

This commit is contained in:
Iuri Matias 2017-03-02 21:31:07 -05:00
parent d5ebd7d748
commit 6784fa662c
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ var Embark = {
self.events.on('file-event', function(fileType, path) { self.events.on('file-event', function(fileType, path) {
if (fileType === 'asset') { if (fileType === 'asset') {
self.config.reloadConfig(); self.config.reloadConfig();
pipeline.build(Embark.abi); pipeline.build(Embark.abi, path);
} }
}); });
callback(); callback();

View File

@ -9,7 +9,7 @@ var Pipeline = function(options) {
this.plugins = options.plugins; this.plugins = options.plugins;
}; };
Pipeline.prototype.build = function(abi) { Pipeline.prototype.build = function(abi, path) {
var self = this; var self = this;
for(var targetFile in this.assetFiles) { for(var targetFile in this.assetFiles) {