Download the PHP package drupaljedi/css-tree-shaking without Composer
On this page you can find all versions of the php package drupaljedi/css-tree-shaking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download drupaljedi/css-tree-shaking
More information about drupaljedi/css-tree-shaking
Files in drupaljedi/css-tree-shaking
Download drupaljedi/css-tree-shaking
More information about drupaljedi/css-tree-shaking
Files in drupaljedi/css-tree-shaking
Vendor drupaljedi
Package css-tree-shaking
Short Description Helps you to eliminate the portions of CSS you aren't using. Usually should be used to generate AMP pages, where is the fixed limit for maximum styles size.
License GPL-2.0-or-later
Package css-tree-shaking
Short Description Helps you to eliminate the portions of CSS you aren't using. Usually should be used to generate AMP pages, where is the fixed limit for maximum styles size.
License GPL-2.0-or-later
Please rate this library. Is it a good library?
Informations about the package css-tree-shaking
CSS Tree Shaking
Helps you to eliminate the portions of CSS you aren't using. Usually should be used to generate AMP pages, where is the fixed limit for maximum styles size.
Installation
Usage
Pretty simple to use, just create the object and shake it :)
Where $html
is raw HTML with inliny styles.
By default, styles will be shaken only if the limit (50kb) is exceeded.
If you want to shake the styles in any case, just call the shakeIt()
with a TRUE
argument:
Features
- PSR-4 autoloading compliant structure
- Easy to use to any framework or even a plain php file
All versions of css-tree-shaking with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-dom Version *
sabberworm/php-css-parser Version ^8.2
symfony/css-selector Version ^3
symfony/dom-crawler Version ~3.0|~4.0
ext-dom Version *
sabberworm/php-css-parser Version ^8.2
symfony/css-selector Version ^3
symfony/dom-crawler Version ~3.0|~4.0
The package drupaljedi/css-tree-shaking contains the following files
Loading the files please wait ....