Skip to content

Commit

Permalink
ver 2.0.0 no SVGs found tancredi#471
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Dec 28, 2022
1 parent 24cf632 commit 3d51d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface AssetsMap {
export const ASSETS_EXTENSION = 'svg';

export const loadPaths = async (dir: string): Promise<string[]> => {
const globPath = join(dir, `**/*.${ASSETS_EXTENSION}`);

// glob has issues with windows separators, so we need to replace them
const globPath = join(dir, `**/*.${ASSETS_EXTENSION}`).replace(/\\/g,'/');
const files = await promisify(glob)(globPath, {});

if (!files.length) {
Expand Down

0 comments on commit 3d51d79

Please sign in to comment.