Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Providers/AddonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ abstract class AddonServiceProvider extends ServiceProvider
protected $externalScripts = [];

/**
* @var list<string> - URLs of Vite entry points
* Vite entry point(s). A string or list is shorthand for the `input` key.
*
* @var string|list<string>|array{input: string|list<string>, publicDirectory?: string, buildDirectory?: string, hotFile?: string}|null
*/
protected $vite = null;

Expand Down Expand Up @@ -667,6 +669,9 @@ public function registerScript(string $path)
Statamic::script($name, "{$filename}.js?v=".md5($version));
}

/**
* @param string|list<string>|array{input: string|list<string>, publicDirectory?: string, buildDirectory?: string, hotFile?: string} $config
*/
public function registerVite($config)
{
$name = $this->getAddon()->packageName();
Expand Down
Loading