File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -456,15 +456,24 @@ export class ProjectDataService implements IProjectDataService {
456
456
457
457
const normalizedPaths = _ . map ( realPaths , ( p ) => path . normalize ( p ) ) ;
458
458
_ . each ( assetItems , ( assetItem ) => {
459
+ const imagePath = path . join ( assetItem . directory , assetItem . filename ) ;
460
+
461
+ let found = false ;
459
462
_ . each ( normalizedPaths , ( currentNormalizedPath ) => {
460
- const imagePath = path . join ( assetItem . directory , assetItem . filename ) ;
461
463
if ( currentNormalizedPath . indexOf ( path . normalize ( imagePath ) ) !== - 1 ) {
462
464
assetItem . path = currentNormalizedPath ;
463
465
assetItem . size = `${ assetItem . width } ${ AssetConstants . sizeDelimiter } ${ assetItem . height } ` ;
464
466
assetSubGroup . images . push ( assetItem ) ;
467
+ found = true ;
465
468
return false ;
466
469
}
467
470
} ) ;
471
+
472
+ if ( ! found ) {
473
+ this . $logger . warn (
474
+ `Didn't find a matching old image definition for file ${ imagePath } . This file will be skipped from resources generation.`
475
+ ) ;
476
+ }
468
477
} ) ;
469
478
470
479
return assetSubGroup ;
You can’t perform that action at this time.
0 commit comments