mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 08:43:21 +08:00
fix: compiling split chunks in production
This commit is contained in:
parent
9149ecc7aa
commit
270188b5b0
|
@ -18,8 +18,6 @@ use Illuminate\Filesystem\FilesystemAdapter;
|
|||
/**
|
||||
* Used to copy JS files from a package directory to the assets' directory.
|
||||
* Without concatenating them. Primarily used for lazy loading JS modules.
|
||||
*
|
||||
* @method DirectorySource[] getSources()
|
||||
*/
|
||||
class JsDirectoryCompiler implements CompilerInterface
|
||||
{
|
||||
|
@ -53,6 +51,10 @@ class JsDirectoryCompiler implements CompilerInterface
|
|||
|
||||
public function getUrl(): ?string
|
||||
{
|
||||
foreach ($this->getSources() as $source) {
|
||||
$this->eachFile($source, fn (JsCompiler $compiler) => $compiler->getUrl());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user