mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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) {
|
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();
|
||||||
|
@ -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) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user