File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,8 @@ class CopyPlugin {
351
351
force : pattern . force ,
352
352
} ;
353
353
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") {
356
356
compilation . fileDependencies . add ( absoluteFilename ) ;
357
357
358
358
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`]
176
176
Object {
177
177
" logs" : Array [
178
178
" 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" ,
179
183
" begin globbing './fixtures/directory/**/*'..." ,
180
184
" determined './fixtures/directory' is a directory" ,
181
185
" determined that './fixtures/directory/.dottedfile' should write to '.dottedfile'" ,
You can’t perform that action at this time.
0 commit comments