From acc9588dbccc5071d1eb8e04f2ab09006a02d4d4 Mon Sep 17 00:00:00 2001 From: Max Kalyabin Date: Mon, 29 Jan 2018 18:08:37 +0300 Subject: [PATCH] fixes #9 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8229fc2..c5ba8b3 100644 --- a/index.js +++ b/index.js @@ -64,8 +64,8 @@ module.exports = function(options) { replaceWithStr = 'url(' + url + "?v=" + md5ify(idata) + ')'; } catch (err) { replaceWithStr = str; - console.dir(file); if (typeof options.emitErrors === 'undefined' || options.emitErrors) { + console.dir(file); this.emit('error', new gutil.PluginError(PLUGIN_NAME, err, {fileName: file.path})); } }