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) {
var dirname = filePath.split('/').slice(0,-1).join('/');
if (fs.existsSync(dirname)) {
if (fs.existsSync("./" + dirname)) {
return true;
}
ensureDirectoryExists(dirname);