Skip to content

Commit 0b6bd5f

Browse files
Merge pull request #768 from pattern-lab/issue/762-serve-file-dupes
Fixes dir duplication when serving files
2 parents 5342213 + 8a0f541 commit 0b6bd5f

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)