From 98539885328949a48a39b504818425dce85b6f01 Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Sat, 3 Jan 2015 00:01:00 +0200 Subject: [PATCH] Fix relative paths on windows --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 107de64a0..e7513fdb3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -139,9 +139,9 @@ var // relative paths assetPaths = { - uncompressed : path.relative(output.uncompressed, output.themes), - compressed : path.relative(output.compressed, output.themes), - packaged : path.relative(output.packaged, output.themes) + uncompressed : path.relative(output.uncompressed, output.themes).replace(/\\/g,'/'), + compressed : path.relative(output.compressed, output.themes).replace(/\\/g,'/'), + packaged : path.relative(output.packaged, output.themes).replace(/\\/g,'/') }; // add base to values @@ -490,7 +490,7 @@ gulp.task('install', 'Set-up project for first time', function () { siteVariable = /@siteFolder .*\'(.*)/mg, siteDestination = answers.site || config.folders.site, - pathToSite = path.relative(path.resolve(config.folders.theme), path.resolve(siteDestination)), + pathToSite = path.relative(path.resolve(config.folders.theme), path.resolve(siteDestination)).replace(/\\/g,'/'), sitePathReplace = "@siteFolder : '" + pathToSite + "/';", configExists = fs.existsSync(config.files.config),