protected function configureWebpack(LoaderInterface $loader, ContainerBuilder $container, array $config, $withTwig): void
    {
        if ($config['enabled']) {
            $loader->load('webpack.xml');

            $container->setParameter('fxp_require_asset.webpack.adapter', $config['adapter']);
            $this->configureWebpackManifest($container, $config['manifest_adapter']);
            $this->configureWebpackAssets($container, $config['assets_adapter']);

            if ($withTwig) {
                $loader->load('twig_webpack.xml');
            }
        }
    }
protected function configureWebpack(LoaderInterface $loader, ContainerBuilder $container, array $config, $withTwig): void
    {
        if ($config['enabled']) {
            $loader->load('webpack.xml');

            $container->setParameter('fxp_require_asset.webpack.adapter', $config['adapter']);
            $this->configureWebpackManifest($container, $config['manifest_adapter']);
            $this->configureWebpackAssets($container, $config['assets_adapter']);

            if ($withTwig) {
                $loader->load('twig_webpack.xml');
            }
        }
    }
protected function configureWebpack ( LoaderInterface $ loader , ContainerBuilder $ container , array $ config , $ withTwig ) : void { if ( $ config [ 'enabled' ] ) { $ loader -> load ( 'webpack.xml' ) ; $ container -> setParameter ( 'fxp_require_asset.webpack.adapter' , $ config [ 'adapter' ] ) ; $ this -> configureWebpackManifest ( $ container , $ config [ 'manifest_adapter' ] ) ; $ this -> configureWebpackAssets ( $ container , $ config [ 'assets_adapter' ] ) ; if ( $ withTwig ) { $ loader -> load ( 'twig_webpack.xml' ) ; } } }
Configure the webpack section.

@param LoaderInterface  $loader    The service loader
@param ContainerBuilder $container The container
@param array            $config    The webpack config
@param bool             $withTwig  Check if the twig feature must be used
Configure the webpack section .