Skip to content

Commit

Permalink
Allow Vite entry points to be merged (#53233)
Browse files Browse the repository at this point in the history
* Allow Vite entry points to be merged

* StyleCI appeasement
  • Loading branch information
JackWH authored Oct 21, 2024
1 parent a5f6fcc commit f507e43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Illuminate/Foundation/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,20 @@ public function withEntryPoints($entryPoints)
return $this;
}

/**
* Merge additional Vite entry points with the current set.
*
* @param array $entryPoints
* @return $this
*/
public function mergeEntryPoints($entryPoints)
{
return $this->withEntryPoints(array_unique([
...$this->entryPoints,
...$entryPoints,
]));
}

/**
* Set the filename for the manifest file.
*
Expand Down

0 comments on commit f507e43

Please sign in to comment.