Skip to content

Commit

Permalink
fix: resolve issues with image globs with subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
dyersituations committed Aug 21, 2024
1 parent a3155ca commit f950d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import { metaGlobReader } from '#src/util/importHelpers';
import leafHeartUrl from '#src/assets/images/leaf_heart.svg?url';
const imageRequire = import.meta.glob('/src/assets/images/borrower-profile/education-placement/*.*', {
const imageRequire = import.meta.glob('/src/assets/images/borrower-profile/education-placement/**/*.*', {
eager: true,
query: '?url',
});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Possibility/KivaContentBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import KvCarouselSlide from '#src/components/Kv/KvCarouselSlide';
import { metaGlobReader } from '#src/util/importHelpers';
const kivaContentBlockImageGlob = import.meta.glob(
'/src/assets/images/possibilities-banners/kiva-content-block/*.*',
'/src/assets/images/possibilities-banners/kiva-content-block/**/*.*',
{ eager: true }
);
const kivaContentBlockImageRequire = metaGlobReader(
Expand Down

0 comments on commit f950d13

Please sign in to comment.