File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,8 @@ class CopyPlugin {
351351 force : pattern . force ,
352352 } ;
353353
354- // If this came from a glob, add it to the file dependencies
355- if ( pattern . fromType === "glob" ) {
354+ // If this came from a glob or dir , add it to the file dependencies
355+ if ( pattern . fromType === "dir" || pattern . fromType === " glob") {
356356 compilation . fileDependencies . add ( absoluteFilename ) ;
357357
358358 logger . debug ( `added '${ absoluteFilename } ' as a file dependency` ) ;
Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ exports[`CopyPlugin logging should logging when "from" is a directory: logs 1`]
176176Object {
177177 " logs" : Array [
178178 " added './fixtures/directory' as a context dependency" ,
179+ " added './fixtures/directory/.dottedfile' as a file dependency" ,
180+ " added './fixtures/directory/directoryfile.txt' as a file dependency" ,
181+ " added './fixtures/directory/nested/deep-nested/deepnested.txt' as a file dependency" ,
182+ " added './fixtures/directory/nested/nestedfile.txt' as a file dependency" ,
179183 " begin globbing './fixtures/directory/**/*'..." ,
180184 " determined './fixtures/directory' is a directory" ,
181185 " determined that './fixtures/directory/.dottedfile' should write to '.dottedfile'" ,
You can’t perform that action at this time.
0 commit comments