Hostnet\Component\Webpack\Asset\Compiler::addSplitPoints PHP Method

addSplitPoints() private method

Add split points to the 'entry' section of the configuration.
private addSplitPoints ( )
    private function addSplitPoints()
    {
        $split_points = [];
        foreach ($this->tracker->getTemplates() as $template_file) {
            $split_points = array_merge($split_points, $this->twig_parser->findSplitPoints($template_file));
        }
        foreach ($split_points as $id => $file) {
            $this->generator->addBlock((new CodeBlock())->set(CodeBlock::ENTRY, [self::getAliasId($id) => $file]));
        }
    }