From b505652e83967c4f8cf0299a229fd05fd42174b1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 12 Dec 2018 21:15:29 +0200 Subject: [PATCH] Fix Windows sourcemap paths. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7117b51..8e4cee7 100644 --- a/index.js +++ b/index.js @@ -254,7 +254,7 @@ function minifyStream(options) { readFromStream(inputStream, function(source) { var time = process.hrtime(); var mem = process.memoryUsage().heapUsed; - var relInputFilename = path.relative(process.cwd(), options.inputFile); + var relInputFilename = path.relative(process.cwd(), options.inputFile).replace(/\\/g, '/'); var sourceMap = resolveSourceMap( source, options.inputSourceMap,