Skip to content

Commit 062ff36

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-99617' into 2.2-develop-pr32
2 parents 5b848c5 + 90b6765 commit 062ff36

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/Deploy/Package/Processor/PostProcessor

1 file changed

+13
-0
lines changed

app/code/Magento/Deploy/Package/Processor/PostProcessor/CssUrls.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,21 @@ private function parseCss(array $urlMap, $cssFilePath, $packagePath, $cssContent
124124
. str_repeat('../', count(explode('/', $cssFileBasePath)))
125125
. $this->minification->addMinifiedSign($matchedFile->getDeployedFilePath())
126126
];
127+
} else {
128+
$filePathInBase = $package->getArea() .
129+
'/' . Package::BASE_THEME .
130+
'/' . $package->getLocale() .
131+
'/' . $lookupFileId;
132+
if ($this->staticDir->isReadable($this->minification->addMinifiedSign($filePathInBase))) {
133+
$urlMap[$url][] = [
134+
'filePath' => $this->minification->addMinifiedSign($packagePath . '/' . $cssFilePath),
135+
'replace' => str_repeat('../', count(explode('/', $cssFileBasePath)) + 4)
136+
. $this->minification->addMinifiedSign($filePathInBase),
137+
];
138+
}
127139
}
128140
}
141+
129142
return $urlMap;
130143
}
131144

0 commit comments

Comments
 (0)