Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Use slashes for the sources map property on Windows. Fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
nDmitry committed Jan 26, 2014
1 parent fe6459c commit 9a1d6fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/autoprefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9a1d6fb

Please sign in to comment.