pass path when listening to file change event
This commit is contained in:
parent
d5ebd7d748
commit
6784fa662c
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue