Class CSS
CSS minifier.
Please report bugs on https://github.com/matthiasmullie/minify/issues
- MatthiasMullie\Minify\Minify
- MatthiasMullie\Minify\CSS
Namespace: MatthiasMullie\Minify
Copyright: Copyright (c) 2012, Matthias Mullie. All rights reserved
License: License
Author: Matthias Mullie minify@mullie.eu
Author: Tijs Verkoyen minify@verkoyen.eu
Located at Sources/minify/src/CSS.php
Copyright: Copyright (c) 2012, Matthias Mullie. All rights reserved
License: License
Author: Matthias Mullie minify@mullie.eu
Author: Tijs Verkoyen minify@verkoyen.eu
Located at Sources/minify/src/CSS.php
public
|
|
public
|
#
setImportExtensions( array $extensions )
Set the type of extensions to be imported into the CSS (to save network connections). Keys of the array should be the file extensions & respective values should be the data type. |
protected
string
|
|
protected
string
|
#
combineImports( string $source, string $content, string[] $parents )
Combine CSS from import statements. |
protected
string
|
|
public
string
|
|
protected
string
|
#
move(
Moving a css file should update all relative urls. Relative references (e.g. ../images/image.gif) in a certain css file, will have to be updated when a file is being saved at another location (e.g. ../../images/image.gif, if the new CSS file is 1 folder deeper). |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
boolean
|
__construct(),
add(),
cache(),
canImportFile(),
extractStrings(),
gzip(),
load(),
minify(),
openFileForWriting(),
registerPattern(),
replace(),
replacePattern(),
restoreExtractedData(),
save(),
writeToFile()
|
protected
integer
|
$maxImportSize
|
#
5
|
protected
string[]
|
$importExtensions
|
#
array(
'gif' => 'data:image/gif',
'png' => 'data:image/png',
'jpe' => 'data:image/jpeg',
'jpg' => 'data:image/jpeg',
'jpeg' => 'data:image/jpeg',
'svg' => 'data:image/svg+xml',
'woff' => 'data:application/x-font-woff',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'xbm' => 'image/x-xbitmap',
)
|
$data,
$extracted,
$patterns
|