Skip to content

Commit 23df73e

Browse files
committed
Fix for includePath
I had to include forceDelete or it wouldn't copy.
1 parent 93f3775 commit 23df73e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,12 @@ module.exports = function(S) {
268268
if (includePaths && includePaths.length) {
269269
includePaths.forEach(function(p) {
270270

271-
// TODO: path.join(_this.optimizedDistPath, p) must be created here before files can be copied over
272-
271+
wrench.mkdirSyncRecursive(path.join(_this.optimizedDistPath, p), '0777');
273272
wrench.copyDirSyncRecursive(
274-
path.join(_this.evt.options.pathDist, p),
275-
path.join(_this.optimizedDistPath, p)
273+
path.join(_this.evt.options.pathDist, p),
274+
path.join(_this.optimizedDistPath, p), {
275+
forceDelete: true
276+
}
276277
);
277278
});
278279
}

0 commit comments

Comments
 (0)