File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ export default (opts) => {
25
25
. statAsync ( absFileSrc )
26
26
. then ( ( stat ) => {
27
27
28
+ // We don't write empty directories
29
+ if ( stat . isDirectory ( ) ) {
30
+ return ;
31
+ }
32
+
28
33
function addToAssets ( ) {
29
34
compilation . assets [ relFileDest ] = {
30
35
size ( ) {
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ describe('apply function', () => {
235
235
'directory/nested/nestedfile.txt'
236
236
] ,
237
237
patterns : [ {
238
- from : '**/*.txt '
238
+ from : '**/*'
239
239
} ]
240
240
} )
241
241
. then ( done )
@@ -250,7 +250,7 @@ describe('apply function', () => {
250
250
'nested/directory/nested/nestedfile.txt'
251
251
] ,
252
252
patterns : [ {
253
- from : '**/*.txt ' ,
253
+ from : '**/*' ,
254
254
to : 'nested'
255
255
} ]
256
256
} )
@@ -266,7 +266,7 @@ describe('apply function', () => {
266
266
] ,
267
267
patterns : [ {
268
268
context : 'directory' ,
269
- from : '**/*.txt ' ,
269
+ from : '**/*' ,
270
270
to : 'nested'
271
271
} ]
272
272
} )
@@ -283,7 +283,7 @@ describe('apply function', () => {
283
283
patterns : [ {
284
284
context : 'directory' ,
285
285
flatten : true ,
286
- from : '**/*.txt ' ,
286
+ from : '**/*' ,
287
287
to : 'nested'
288
288
} ]
289
289
} )
@@ -299,7 +299,7 @@ describe('apply function', () => {
299
299
] ,
300
300
patterns : [ {
301
301
context : path . join ( HELPER_DIR , 'directory' ) ,
302
- from : '**/*.txt ' ,
302
+ from : '**/*' ,
303
303
to : 'nested'
304
304
} ]
305
305
} )
@@ -587,7 +587,7 @@ describe('apply function', () => {
587
587
'directory/nested/nestedfile.txt'
588
588
] ,
589
589
patterns : [ {
590
- from : '**/*.txt ' ,
590
+ from : '**/*' ,
591
591
ignore : [
592
592
'file.*'
593
593
]
You can’t perform that action at this time.
0 commit comments