Skip to content

Commit

Permalink
Add console warning about missing referenced sourcemap file
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 16, 2017
1 parent d590c86 commit 5987c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
}

Expand Down

0 comments on commit 5987c38

Please sign in to comment.