Skip to content

Commit 1387934

Browse files
Fix manifestPath not being treated like a path, particularly on Windows
1 parent 5a954da commit 1387934

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/VitePluginService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
use Craft;
1414
use craft\helpers\App;
15+
use craft\helpers\FileHelper as CraftFileHelper;
1516
use nystudio107\pluginvite\helpers\FileHelper;
1617

1718
/**
@@ -68,7 +69,7 @@ public function init(): void
6869
$bundle->sourcePath,
6970
true
7071
);
71-
$this->manifestPath = FileHelper::createUrl($bundle->sourcePath, self::MANIFEST_FILE_NAME);
72+
$this->manifestPath = CraftFileHelper::normalizePath($bundle->sourcePath . '/' . self::MANIFEST_FILE_NAME);
7273
if ($baseAssetsUrl !== false) {
7374
$this->serverPublic = $baseAssetsUrl;
7475
}

0 commit comments

Comments
 (0)