PHPackages                             silbinarywolf/silverstripe-stampycss - 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. silbinarywolf/silverstripe-stampycss

AbandonedArchivedSilverstripe-module[Utility &amp; Helpers](/categories/utility)

silbinarywolf/silverstripe-stampycss
====================================

A module for integrating the CSSCrush PHP preprocessor with Silverstripe.

1.0.2(9y ago)1111BSD-3-ClausePHP

Since Dec 24Pushed 9y agoCompare

[ Source](https://github.com/SilbinaryWolf/silverstripe-stampycss)[ Packagist](https://packagist.org/packages/silbinarywolf/silverstripe-stampycss)[ RSS](/packages/silbinarywolf-silverstripe-stampycss/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

StampyCSS
=========

[](#stampycss)

Add support for CrushCSS using the Silverstripe Requirements Backend. This module comes with CSSCrush decoupled from the Requirements\_Backend so you can integrate it with your own custom solutions.

[![stampy](https://cloud.githubusercontent.com/assets/3859574/21466336/9ce0c92c-ca1b-11e6-8eca-4f62a6c9e8bb.jpg)](https://cloud.githubusercontent.com/assets/3859574/21466336/9ce0c92c-ca1b-11e6-8eca-4f62a6c9e8bb.jpg)

Quick Install
=============

[](#quick-install)

1. Put module in root folder
2. Put the following in your \_config.php

```
Requirements::set_backend(new Stampy\Requirements_Backend());
```

Enable Source Maps
==================

[](#enable-source-maps)

1. Update your YML so source map files will be generated

```
Stampy\CSSCrush:
  options:
  	source_map: true
```

2. Update your assets/.htaccess to allow the "map" file extension. Change from something like this:

```
Deny from all

	Allow from all

```

To this:

```
Deny from all

	Allow from all

```

Extending CSS Crush
===================

[](#extending-css-crush)

With CSSCrush, you're able to add custom functions to the preprocessor.

```
Stampy\CSSCrush:
  extensions:
    [CSSCrushExtension]
```

```
