mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Method "AssetController::adjustCssUrl()" has been applied to compress process.
This commit is contained in:
@@ -517,11 +517,10 @@ EOD
|
||||
*/
|
||||
public function combineCssFiles($inputFiles, $outputFile)
|
||||
{
|
||||
// todo: adjust url() references in CSS files
|
||||
$content = '';
|
||||
foreach ($inputFiles as $file) {
|
||||
$content .= "/*** BEGIN FILE: $file ***/\n"
|
||||
. file_get_contents($file)
|
||||
. $this->adjustCssUrl(file_get_contents($file), dirname($file), dirname($outputFile))
|
||||
. "/*** END FILE: $file ***/\n";
|
||||
}
|
||||
file_put_contents($outputFile, $content);
|
||||
|
||||
Reference in New Issue
Block a user