How to use the gulp-util.PluginError function in gulp-util

To help you get started, we’ve selected a few gulp-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wookiehangover / gulp-mocha-selenium / index.js View on Github external
browser.quit(function() {
          if (selenium.kill) {
            selenium.kill();
          }
          stream.emit('error', new gutil.PluginError('gulp-mocha', err));
          cb();
        });
      }
github jelz / gulp-metalsmith / lib / index.js View on Github external
function emitError(messageOrErr) {
    var opts = {showStack: true};
    var err = new gutil.PluginError(PLUGIN_NAME, messageOrErr, opts);
    s.emit('error', err);
  }
}
github jlouns / gulp-requirejs-optimize / index.js View on Github external
}, function(cb) {
		if (error) {
			cb(new gutil.PluginError(PLUGIN_NAME, error));
		}

		cb();
	});
};
github mrsharpoblunto / it-gets-the-hose-again / web / gulpfile.js View on Github external
webpack(webpackConfig, function(err, stats) {
        if (err) {
            callback(new gutil.PluginError("webpack", err));
            return;
        }
        gutil.log("[webpack]", stats.toString(webpackStatsOptions));
        callback();
    });
});
github RackHD / on-web-ui / scripts / tasks / bundle.js View on Github external
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();
    }
  }

gulp-util

Utility functions for gulp plugins

MIT
Latest version published 8 years ago

Package Health Score

50 / 100
Full package analysis

Similar packages