Skip to content

Commit

Permalink
Fix manifestPath not being treated like a path, particularly on Win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
engram-design authored May 21, 2024
1 parent 5a954da commit 1387934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/VitePluginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Craft;
use craft\helpers\App;
use craft\helpers\FileHelper as CraftFileHelper;
use nystudio107\pluginvite\helpers\FileHelper;

/**
Expand Down Expand Up @@ -68,7 +69,7 @@ public function init(): void
$bundle->sourcePath,
true
);
$this->manifestPath = FileHelper::createUrl($bundle->sourcePath, self::MANIFEST_FILE_NAME);
$this->manifestPath = CraftFileHelper::normalizePath($bundle->sourcePath . '/' . self::MANIFEST_FILE_NAME);
if ($baseAssetsUrl !== false) {
$this->serverPublic = $baseAssetsUrl;
}
Expand Down

0 comments on commit 1387934

Please sign in to comment.