Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
browser.quit(function() {
if (selenium.kill) {
selenium.kill();
}
stream.emit('error', new gutil.PluginError('gulp-mocha', err));
cb();
});
}
function emitError(messageOrErr) {
var opts = {showStack: true};
var err = new gutil.PluginError(PLUGIN_NAME, messageOrErr, opts);
s.emit('error', err);
}
}
}, function(cb) {
if (error) {
cb(new gutil.PluginError(PLUGIN_NAME, error));
}
cb();
});
};
webpack(webpackConfig, function(err, stats) {
if (err) {
callback(new gutil.PluginError("webpack", err));
return;
}
gutil.log("[webpack]", stats.toString(webpackStatsOptions));
callback();
});
});
function handler(err, stats) {
if (err) {
return callback(new gulpUtil.PluginError('webpack', err));
}
if (global.parameters.argv.verbose) {
gulpUtil.log('[webpack]', stats.toString({colors: true}));
}
if (!started) {
started = true;
return callback();
}
}