Свойство | Type | Description | |
---|---|---|---|
$importExtensions | string[] | ||
$maxImportSize | integer |
Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
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 |
Résultat | boolean |
protected moveImportsToTop ( string $content ) : string | ||
$content | string | Nearly finished CSS content |
Résultat | 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 |
Résultat | string |
protected shortenHex ( string $content ) : string | ||
$content | string | The CSS content to shorten the hex color codes for |
Résultat | string |
protected shortenZeroes ( string $content ) : string | ||
$content | string | The CSS content to shorten the zero values for |
Résultat | string |
protected stripEmptyTags ( string $content ) : string | ||
$content | string | |
Résultat | string |
protected stripWhitespace ( string $content ) : string | ||
$content | string | The CSS content to strip the whitespace for |
Résultat | string |