From e69bfaa3530c0d004b83132c9276c1ce5c0271ef Mon Sep 17 00:00:00 2001 From: sami-t Date: Mon, 14 Jul 2014 16:49:00 -0700 Subject: [PATCH] Convert backslashes to slashes for Windows compatibility --- src/Gruntfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gruntfile.js b/src/Gruntfile.js index d97633728..7d192d1d7 100644 --- a/src/Gruntfile.js +++ b/src/Gruntfile.js @@ -60,6 +60,10 @@ module.exports = function(grunt) { ], setWatchFiles = function(action, filePath) { + // convert backslashes to slashes for Windows compatibility + if(process.platform === 'win32') { + filePath = filePath.replace(/\\/g, '/'); + } var outputPath = filePath.replace(paths.source.definitions, paths.output.uncompressed + 'definitions/') ;