From 9a1d6fbef659622d36c3b4237fc21faabe958c01 Mon Sep 17 00:00:00 2001 From: Dmitry Nikitenko Date: Sun, 26 Jan 2014 12:29:43 +0700 Subject: [PATCH] Use slashes for the `sources` map property on Windows. Fixes #25 --- tasks/autoprefixer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/autoprefixer.js b/tasks/autoprefixer.js index b77b473..e75da2b 100644 --- a/tasks/autoprefixer.js +++ b/tasks/autoprefixer.js @@ -60,6 +60,10 @@ module.exports = function(grunt) { function fixSources(sources, to) { for (var i = 0, ii = sources.length; i < ii; i++) { sources[i] = path.relative(path.dirname(to), sources[i]); + + if (path.sep === '\\') { + sources[i] = sources[i].replace(/\\/g, '/'); + } } return sources;