Merge pull request #351 from sveltejs/argh-windows

doh
This commit is contained in:
Rich Harris
2018-08-09 20:02:51 -04:00
committed by GitHub

View File

@@ -107,7 +107,7 @@ function testExport({ basepath = '' }) {
'svelte-logo-192.png',
'svelte-logo-512.png',
].map(file => {
return basepath ? path.join(basepath.replace(/^\//, ''), file) : file;
return basepath ? `${basepath.replace(/^[\/\\]/, '')}/${file}` : file;
});
// Client scripts that should show up in the extraction directory.