Skip to content

Commit 8a0f541

Browse files
committed
Fixes dir duplication when serving files
1 parent 578a9af commit 8a0f541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/asset_copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const asset_copier = () => {
8989

9090
//watch for changes and copy
9191
assetWatcher.on('addDir', (p) => {
92-
const destination = path.resolve(basePath, dir.public + '/' + path.basename(p));
92+
const destination = path.resolve(basePath, dir.public);
9393
copyFile(p, destination, copyOptions);
9494
}).on('add', (p) => {
9595
const destination = path.resolve(basePath, dir.public + '/' + path.basename(p));

0 commit comments

Comments
 (0)