diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-05-09 11:43:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 11:43:48 +0200 |
commit | b28c5430efefa63d04d87404c99798e82d0427e4 (patch) | |
tree | 0bf158fb56120be6624fa26639a28beb84a6598e /app/AppKernel.php | |
parent | 43f81a62e93fb20c7af619a5132276706e989c62 (diff) | |
parent | efac66cb56d650b863b64c9c4582589da6a2442a (diff) | |
download | wallabag-b28c5430efefa63d04d87404c99798e82d0427e4.tar.gz wallabag-b28c5430efefa63d04d87404c99798e82d0427e4.tar.zst wallabag-b28c5430efefa63d04d87404c99798e82d0427e4.zip |
Merge pull request #3022 from wallabag/webpack
Adds Webpack support and remove Grunt
Diffstat (limited to 'app/AppKernel.php')
-rw-r--r-- | app/AppKernel.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index c8382d5f..b9293498 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -71,5 +71,14 @@ class AppKernel extends Kernel | |||
71 | public function registerContainerConfiguration(LoaderInterface $loader) | 71 | public function registerContainerConfiguration(LoaderInterface $loader) |
72 | { | 72 | { |
73 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); | 73 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
74 | $loader->load(function ($container) { | ||
75 | if ($container->getParameter('use_webpack_dev_server')) { | ||
76 | $container->loadFromExtension('framework', [ | ||
77 | 'assets' => [ | ||
78 | 'base_url' => 'http://localhost:8080/', | ||
79 | ], | ||
80 | ]); | ||
81 | } | ||
82 | }); | ||
74 | } | 83 | } |
75 | } | 84 | } |