Skip to content

Commit

Permalink
Reset Webpack Encore Filelist (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
fionera authored and andig committed Jan 11, 2019
1 parent a04a3b2 commit 53ea496
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Bootstraps/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 53ea496

Please sign in to comment.