added relative path in build folder creation

trunk
Kit Swinton 2023-10-20 11:07:22 +11:00
parent 90abf84693
commit 9ba3032a92
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ fs.cp('./src/styles','./build/styles', { recursive: true }, (err) => {
function ensureDirectoryExists(filePath) { function ensureDirectoryExists(filePath) {
var dirname = filePath.split('/').slice(0,-1).join('/'); var dirname = filePath.split('/').slice(0,-1).join('/');
if (fs.existsSync(dirname)) { if (fs.existsSync("./" + dirname)) {
return true; return true;
} }
ensureDirectoryExists(dirname); ensureDirectoryExists(dirname);