From 0536da2da6bd36b201ab0c58d923551703a88d7c Mon Sep 17 00:00:00 2001 From: Eric Richer Date: Wed, 10 May 2023 09:15:58 -0400 Subject: [PATCH] Fixed issue when no route found to use default --- .gitignore | 2 ++ src/Config/WebpackOptions.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3806554..30ef955 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /vendor /.idea composer.lock +.phpcs* +.phpunit* diff --git a/src/Config/WebpackOptions.php b/src/Config/WebpackOptions.php index 0a11774..44a14db 100644 --- a/src/Config/WebpackOptions.php +++ b/src/Config/WebpackOptions.php @@ -104,7 +104,7 @@ public function getScriptListByRoute($routeMatched) } } // No matching route found, check if default is used - if ($this->routeNotFoundUseDefault) return $this->getScriptListByTemplate(); + if ($this->routeNotFoundUseDefault) return $this->getDefaultScriptList(); else return []; }