]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/AppKernel.php
Adds Webpack support and removes the use for Grunt
[github/wallabag/wallabag.git] / app / AppKernel.php
index c8382d5f6c27991f2034dfcb93e1c030b30e35cc..b9293498ff60ccf14079e51d217baf48ebb4b617 100644 (file)
@@ -71,5 +71,14 @@ class AppKernel extends Kernel
     public function registerContainerConfiguration(LoaderInterface $loader)
     {
         $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
+        $loader->load(function ($container) {
+           if ($container->getParameter('use_webpack_dev_server')) {
+               $container->loadFromExtension('framework', [
+                   'assets' => [
+                       'base_url' => 'http://localhost:8080/',
+                   ],
+               ]);
+           }
+        });
     }
 }