Skip to content

Commit f507e43

Browse files
authored
Allow Vite entry points to be merged (#53233)
* Allow Vite entry points to be merged * StyleCI appeasement
1 parent a5f6fcc commit f507e43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Illuminate/Foundation/Vite.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,20 @@ public function withEntryPoints($entryPoints)
175175
return $this;
176176
}
177177

178+
/**
179+
* Merge additional Vite entry points with the current set.
180+
*
181+
* @param array $entryPoints
182+
* @return $this
183+
*/
184+
public function mergeEntryPoints($entryPoints)
185+
{
186+
return $this->withEntryPoints(array_unique([
187+
...$this->entryPoints,
188+
...$entryPoints,
189+
]));
190+
}
191+
178192
/**
179193
* Set the filename for the manifest file.
180194
*

0 commit comments

Comments
 (0)