Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/axllent/silverstripe-minifier

CSS & JavaScript minifier, in PHP for Silverstripe
https://github.com/axllent/silverstripe-minifier

css javascript minifier minify silverstripe-4 silverstripe-5

Last synced: about 2 months ago
JSON representation

CSS & JavaScript minifier, in PHP for Silverstripe

Awesome Lists containing this project

README

        

# CSS & JavaScript minifier for Silverstripe

Automatically minify combined CSS & JavaScript files in Silverstripe 5 when running `Requirements::process_combined_files()`.
Internally it uses [matthiasmullie/minify](https://github.com/matthiasmullie/minify) to remove whitespace, strips comments and combines files.

This is useful if you do not require any JavaScript bundling or transpiling (eg: webpak, esbuild etc) but you still wish to minify the combined CSS and JavaScript files.

## Requirements

- Silverstripe ^5

## Installation

```shell
composer require axllent/silverstripe-minifier
```

This module is plug-and-play, no configuration required after installing and running a `?flush`.

## Usage example

```php