From 5987c383fe2038fc641f7b0dac265f1114f36886 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 16 Nov 2017 13:22:48 +0100 Subject: [PATCH] Add console warning about missing referenced sourcemap file --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index aba4fb2..292e279 100644 --- a/index.js +++ b/index.js @@ -101,6 +101,8 @@ UglifyWriter.prototype.processFile = function(inFile, outFile, relativePath, out let sourceMapPath = path.join(path.dirname(inFile), url); if (fs.existsSync(sourceMapPath)) { sourceMap.content = JSON.parse(fs.readFileSync(sourceMapPath)); + } else { + console.warn(`[WARN] (broccoli-uglify-sourcemap) "${url}" referenced in "${relativePath}" could not be found`); } }