Browse Source

Merge pull request #1553 from MohammadYounes/relativePaths

Fix relative paths on windows
pull/1574/head
Jack Lukic 10 years ago
parent
commit
eaf3a5c628
1 changed files with 4 additions and 4 deletions
  1. 8
      gulpfile.js

8
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),

Loading…
Cancel
Save