Skip to content

Commit 033f45f

Browse files
committed
Handle relative paths
1 parent 43a382e commit 033f45f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/default/static/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ module.exports = function(options, folders){
2020
if(options.html && options.html.staticDist){
2121
options.html.staticDist.forEach(function(dist){
2222
var out = path.join(__dirname, '..', '..', '..', '..', folders.dist);
23+
if(!path.isAbsolute(dist)){
24+
dist = path.join(process.cwd(), dist);
25+
}
2326
staticDistPromises.push(copy(dist, out));
2427
});
2528
}

0 commit comments

Comments
 (0)