diff --git a/src/utils/assets.ts b/src/utils/assets.ts index 0bba32b2..f8cce343 100644 --- a/src/utils/assets.ts +++ b/src/utils/assets.ts @@ -23,7 +23,7 @@ export interface AssetsMap { export const ASSETS_EXTENSION = 'svg'; export const loadPaths = async (dir: string): Promise => { - const globPath = join(dir, `**/*.${ASSETS_EXTENSION}`); + const globPath = join(dir, `**/*.${ASSETS_EXTENSION}`).replace(/\\/g,'/'); const files = await promisify(glob)(globPath, {});