diff --git a/lib/stream-bundles-watch.js b/lib/stream-bundles-watch.js index 2f51cfde..b1fef698 100644 --- a/lib/stream-bundles-watch.js +++ b/lib/stream-bundles-watch.js @@ -74,6 +74,7 @@ function _bundle(config, env) { .pipe(gulp.dest(config.options.dest)) .pipe(through.obj(function (file, enc, cb) { bundleDone(prettyScriptsBundleName, start); + if (config.options.callback && typeof(config.options.callback) == 'function') config.options.callback(file); })); }); @@ -110,6 +111,7 @@ function _bundle(config, env) { .pipe(gulp.dest(config.options.dest)) .pipe(through.obj(function (file, enc, cb) { bundleDone(prettyStylesBundleName, start); + if (config.options.callback && typeof(config.options.callback) == 'function') config.options.callback(file); })); });