• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/webpackbuilder.php
  • Класс: BitrixLandingAssetsWebpackBuilder
  • Вызов: WebpackBuilder::fillPackageWithResources
protected function fillPackageWithResources(): void
{
	foreach (Types::getAssetTypes() as $type)
	{
		if (array_key_exists($type, $this->normalizedResources))
		{
			if($type === Types::TYPE_LANG)
			{
				$this->webpackFile->setUseLang();
			}
			foreach ($this->normalizedResources[$type] as $resource)
			{
				$this->webpackFile->addResource($resource);
			}
		}
	}
}