leadsvilla.blogg.se

Minify css with php
Minify css with php





minify css with php

stripEmptyTags ( string $content ) : string Strip comments from source code. stripComments ( ) Strip comments from source code. shortenZeroes ( string $content ) : string Shorthand 0 values to plain 0, instead of e.g. shortenHex ( string $content ) : string Shorthand hex color codes. shortenFontWeights ( string $content ) : string Shorten CSS font weights. moveImportsToTop ( string $content ) : string Move any import statements to the top.

MINIFY CSS WITH PHP UPDATE

move ( MatthiasMullie\PathConverter\Converter $converter, string $content ) : string Moving a css file should update all relative urls. importFiles ( string $source, string $content ) : string Import files into the CSS, base64-ized. It can parse a string that contains PHP and remove any extraneous material. combineImports ( string $source, string $content, string $parents ) : string Combine CSS from import statements. PHP Minifier lowered the size of files and the time it took for a page to load. Protected Methods Method Description canImportBySize ( string $path ) : boolean Check if file is small enough to be imported. setMaxImportSize ( integer $size ) Set the maximum size if files to be imported. setImportExtensions ( array $extensions ) Set the type of extensions to be imported into the CSS (to save networkĬonnections). Extends Minify Show file Open project: matthiasmullie/minify Class Usage Examples Protected Properties Property Type Description $importExtensions string $maxImportSize integer Public Methods Method Description execute ( string $path = null, string $parents = ) : string Minify the data.







Minify css with php