Skip to content

Commit ee8fe69

Browse files
committed
Use posix path for pwa paths. #388
1 parent b25e8fa commit ee8fe69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/platforms/pwa/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { basename, extname, join, relative } from 'path';
1+
import { basename, extname, join, posix, relative, sep } from 'path';
22
import { mkdirp, pathExists, readFile, readJSON, writeJSON } from '@ionic/utils-fs';
33

44
import { InputAsset } from '../../input-asset';
@@ -378,6 +378,7 @@ export class PwaAssetGenerator extends AssetGenerator {
378378

379379
private makeIconManifestEntry(asset: PwaOutputAssetTemplate, relativePath: string): ManifestIcon {
380380
const ext = extname(relativePath);
381+
const posixPath = relativePath.split(sep).join(posix.sep);
381382

382383
const type =
383384
(
@@ -390,7 +391,7 @@ export class PwaAssetGenerator extends AssetGenerator {
390391
)[ext] || 'image/png';
391392

392393
let entry: ManifestIcon = {
393-
src: relativePath,
394+
src: posixPath,
394395
type,
395396
sizes: `${asset.width}x${asset.height}`,
396397
};

0 commit comments

Comments
 (0)