50 $this->normalizedCriticalResources = $this->criticalResources->getNormalized();
55 $this->resources->remove($this->criticalResources->getPathes());
56 $this->normalizedResources = $this->resources->getNormalized();
64 if ($this->resources->isEmpty())
84 $this->webpackFile->setLandingId($this->landingId);
89 $this->webpackFile->build();
99 if (array_key_exists($type, $this->normalizedResources))
103 $this->webpackFile->setUseLang();
105 foreach ($this->normalizedResources[$type] as $resource)
107 $this->webpackFile->addResource($resource);
126 Main\Page\Asset::getInstance()->addString($this->webpackFile->getOutput());
137 foreach ($this->normalizedResources as $type =>
$resources)
144 $list = array_unique($list);
147 $list[] =
'version_' . Main\ModuleManager::getVersion(
'landing');
149 $list[] = Landing::getPreviewMode() ?
'previewMode' :
'publicMode';
151 return substr(md5(serialize($list)), 0, 10);
initResourcesAsJsExtension(array $resources, $extName=null)
const LOCATION_BEFORE_ALL
__construct(ResourceCollection $resources)
normalizeCriticalResources()
const PACKAGE_CRITICAL_NAME
fillPackageWithResources()
$normalizedCriticalResources