Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/axllent/silverstripe-minifier
- Owner: axllent
- License: mit
- Created: 2017-10-09T04:24:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T19:27:19.000Z (10 months ago)
- Last Synced: 2024-09-22T03:39:58.733Z (3 months ago)
- Topics: css, javascript, minifier, minify, silverstripe-4, silverstripe-5
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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