Skip to content

Commit 53ea496

Browse files
fioneraandig
authored andcommitted
Reset Webpack Encore Filelist (#151)
1 parent a04a3b2 commit 53ea496

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Bootstraps/Symfony.php

+7
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ public function postHandle($app)
192192
}, $twigLoader);
193193
}
194194

195+
//reset Webpack Encore file list
196+
Utils::bindAndCall(function () use ($container) {
197+
if (isset($container->privates['webpack_encore.entrypoint_lookup'])) {
198+
$container->privates['webpack_encore.entrypoint_lookup']->reset();
199+
}
200+
}, $container);
201+
195202
//reset all profiler stuff currently supported
196203
if ($container->has('profiler')) {
197204
$profiler = $container->get('profiler');

0 commit comments

Comments
 (0)