Add missing posixify

This commit is contained in:
mrkishi
2018-10-26 11:03:29 -03:00
parent 3b714c0de3
commit 382fe6b7b9

View File

@@ -226,8 +226,8 @@ function generate_server(
error
};`.replace(/^\t\t/gm, '').trim();
const build_dir = path.relative(cwd, dest);
const src_dir = path.relative(cwd, src);
const build_dir = posixify(path.relative(cwd, dest));
const src_dir = posixify(path.relative(cwd, src));
return `// This file is generated by Sapper — do not edit it!\n` + template
.replace('__BUILD__DIR__', JSON.stringify(build_dir))
@@ -242,4 +242,4 @@ function get_file(path_to_routes: string, component: PageComponent) {
}
return posixify(`${path_to_routes}/${component.file}`);
}
}