프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$importExtensions | string[] | ||
$maxImportSize | integer |
메소드 | 설명 | |
---|---|---|
execute ( string[optional] $path = null, string[] $parents = [] ) : string | Minify the data. | |
setImportExtensions ( array $extensions ) | Set the type of extensions to be imported into the CSS (to save network connections). | |
setMaxImportSize ( integer $size ) | Set the maximum size if files to be imported. |
메소드 | 설명 | |
---|---|---|
canImportBySize ( string $path ) : boolean | Check if file is small enough to be imported. | |
combineImports ( string $source, string $content, string[] $parents ) : string | Combine CSS from import statements. | |
importFiles ( string $source, string $content ) : string | Import files into the CSS, base64-ized. | |
move ( MatthiasMullie\PathConverter\Converter $converter, string $content ) : string | Moving a css file should update all relative urls. | |
moveImportsToTop ( string $content ) : string | Move any import statements to the top. | |
shortenFontWeights ( string $content ) : string | Shorten CSS font weights. | |
shortenHex ( string $content ) : string | Shorthand hex color codes. | |
shortenZeroes ( string $content ) : string | Shorthand 0 values to plain 0, instead of e.g. -0em. | |
stripComments ( ) | Strip comments from source code. | |
stripEmptyTags ( string $content ) : string | Strip comments from source code. | |
stripWhitespace ( string $content ) : string | Strip whitespace. |
protected canImportBySize ( string $path ) : boolean | ||
$path | string | The path to the file |
리턴 | boolean |
protected moveImportsToTop ( string $content ) : string | ||
$content | string | Nearly finished CSS content |
리턴 | string |
public setImportExtensions ( array $extensions ) | ||
$extensions | array | Array of file extensions |
public setMaxImportSize ( integer $size ) | ||
$size | integer | Size in kB |
protected shortenFontWeights ( string $content ) : string | ||
$content | string | The CSS content to shorten the font weights for |
리턴 | string |
protected shortenHex ( string $content ) : string | ||
$content | string | The CSS content to shorten the hex color codes for |
리턴 | string |
protected shortenZeroes ( string $content ) : string | ||
$content | string | The CSS content to shorten the zero values for |
리턴 | string |
protected stripEmptyTags ( string $content ) : string | ||
$content | string | |
리턴 | string |
protected stripWhitespace ( string $content ) : string | ||
$content | string | The CSS content to strip the whitespace for |
리턴 | string |