added relative path in build folder creation
parent
90abf84693
commit
9ba3032a92
2
build.js
2
build.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue