Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseki/webloaderfilters
jsMin and cssMin adapter to https://github.com/janmarek/WebLoader
https://github.com/joseki/webloaderfilters
Last synced: about 2 months ago
JSON representation
jsMin and cssMin adapter to https://github.com/janmarek/WebLoader
- Host: GitHub
- URL: https://github.com/joseki/webloaderfilters
- Owner: Joseki
- License: mit
- Created: 2014-09-11T19:38:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-12T06:35:18.000Z (over 9 years ago)
- Last Synced: 2023-08-15T09:14:36.873Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 175 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Joseki/WebloaderFilters
=======================Adapting javascript and CSS minify tools to [Webloader](https://github.com/janmarek/WebLoader).
Installation
------------The best way to install is using [Composer](http://getcomposer.org/):
```sh
$ composer require joseki/webloader-filters
```Usage
-----Register minify services to your `config.neon`:
```yml
services:
cssMin: Joseki\Webloader\CssMinFilter
jsMin: Joseki\Webloader\JsMinFilter
```... and then you can use them inside WebLoader extension as follows:
```yml
webloader:
css:
default: # your WebLoader css control name
filters:
- @cssMin
```or for javascript:
```yml
webloader:
js:
default: # your WebLoader js control name
filters:
- @jsMin
```NOTE: when using as a `fileFilters`, files containing `.min.` in their names will be ignored
```yml
webloader:
js:
default: # your WebLoader js control name
files:
- script.js
- script.min.js # this file will not be filtered by @jsMin
fileFilters:
- @jsMin
```