From 432dc32196ab3aac123c1f63c5a9636fa6191889 Mon Sep 17 00:00:00 2001 From: Fionera Date: Fri, 11 Jan 2019 13:28:11 +0100 Subject: [PATCH] Reset Webpack Encore Filelist If you dont do this, you will only see your js and css files once --- Bootstraps/Symfony.php | 7 +++++++ 1 file changed, 7 insertions(+) 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');