diff --git a/src/Utilities/ViteManifest.php b/src/Utilities/ViteManifest.php index 3e016b9..652bba1 100644 --- a/src/Utilities/ViteManifest.php +++ b/src/Utilities/ViteManifest.php @@ -74,6 +74,10 @@ public static function getRecords(ViteHelperConfig $config): ManifestRecords return new ManifestRecords($manifestArray, $manifestPath); } + /** + * @param string $pluginName e.g. "MyPlugin" + * @return string filesystem path to the Plugin's manifest.json + */ protected static function getPluginManifestPath(string $pluginName): string { return Plugin::path($pluginName) . 'webroot' . DS . 'manifest.json'; diff --git a/src/View/Helper/ViteScriptsHelper.php b/src/View/Helper/ViteScriptsHelper.php index 18eb89d..3d54a7d 100644 --- a/src/View/Helper/ViteScriptsHelper.php +++ b/src/View/Helper/ViteScriptsHelper.php @@ -68,7 +68,7 @@ public function isDev(?ViteHelperConfig $config = null): bool * * devEntries (string[]): entry files in development mode * * other options are rendered as attributes to the html tag * - * @param string|array $options file entrypoint or script options + * @param array|string $options file entrypoint or script options * @param \ViteHelper\Utilities\ViteHelperConfig|null $config config instance * @return void * @throws \ViteHelper\Exception\ConfigurationException @@ -184,7 +184,7 @@ private function productionScript(array $options, ViteHelperConfig $config): voi * * devEntries (string[]): entry files in development mode * * other options are rendered as attributes to the html tag * - * @param string|array $options file entrypoint or css options + * @param array|string $options file entrypoint or css options * @param \ViteHelper\Utilities\ViteHelperConfig|null $config config instance * @return void * @throws \ViteHelper\Exception\ManifestNotFoundException