diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index 4684621..e6abdd7 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -192,6 +192,13 @@ public function postHandle($app) }, $twigLoader); } + //reset Webpack Encore file list + Utils::bindAndCall(function () use ($container) { + if (isset($container->privates['webpack_encore.entrypoint_lookup'])) { + $container->privates['webpack_encore.entrypoint_lookup']->reset(); + } + }, $container); + //reset all profiler stuff currently supported if ($container->has('profiler')) { $profiler = $container->get('profiler');