PHPackages                             drupaljedi/css-tree-shaking - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. drupaljedi/css-tree-shaking

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

drupaljedi/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.

1.1.0(6y ago)1122.3k↓33.3%2[2 issues](https://github.com/Drupal-Jedi/css-tree-shaking/issues)GPL-2.0-or-laterPHPPHP &gt;=7.0CI failing

Since Apr 5Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Drupal-Jedi/css-tree-shaking)[ Packagist](https://packagist.org/packages/drupaljedi/css-tree-shaking)[ RSS](/packages/drupaljedi-css-tree-shaking/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

CSS Tree Shaking
================

[](#css-tree-shaking)

[![Build Status](https://camo.githubusercontent.com/2fdfc5b3b9fcd2be3d6b55dde3c8e3b3bafca9b757633a80d90203f0490a6a09/68747470733a2f2f7472617669732d63692e6f72672f44727570616c2d4a6564692f6373732d747265652d7368616b696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Drupal-Jedi/css-tree-shaking) [![codecov](https://camo.githubusercontent.com/190d04c5d040464126e831a074b98d80179320e01befb17a075136354247842e/68747470733a2f2f636f6465636f762e696f2f67682f44727570616c2d4a6564692f6373732d747265652d7368616b696e672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Drupal-Jedi/css-tree-shaking) [![Maintainability](https://camo.githubusercontent.com/0afbe9b8f959202b06e33f1f188be5adad4a2af501782635f6b0a97efef93a51/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66303439373065326466303234653338623436622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Drupal-Jedi/css-tree-shaking/maintainability) [![Total Downloads](https://camo.githubusercontent.com/47d01693c0f5935adec06558071ac1ddda9211f49fbc4ebd6b5e0b86af4f2e55/68747470733a2f2f706f7365722e707567782e6f72672f64727570616c4a6564692f6373732d747265652d7368616b696e672f646f776e6c6f616473)](https://packagist.org/packages/drupalJedi/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
------------

[](#installation)

```
composer require drupaljedi/css-tree-shaking

```

Usage
-----

[](#usage)

Pretty simple to use, just create the object and shake it :)

```
