Componette

Componette

Joseki

Joseki / WebloaderFilters v1.1

jsMin and cssMin adapter to https://github.com/janmarek/WebLoader

download-cloud-line composer require joseki/webloader-filters

Joseki/WebloaderFilters

Adapting javascript and CSS minify tools to Webloader.

Installation

The best way to install is using Composer:

$ composer require joseki/webloader-filters

Usage

Register minify services to your config.neon:

services:
  cssMin: Joseki\Webloader\CssMinFilter
  jsMin: Joseki\Webloader\JsMinFilter

... and then you can use them inside WebLoader extension as follows:

webloader:
  css:
    default: # your WebLoader css control name
      filters:
        - @cssMin

or for javascript:

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

webloader:
  js:
    default: # your WebLoader js control name
      files:
        - script.js
        - script.min.js    # this file will not be filtered by @jsMin
      fileFilters:
        - @jsMin
  • v1.1 Released version 1.1

    • jsMin & cssMin filters can ignore minified files when using as fileFilters (possible BC break)
    • added tests and connected to TravisCI
  • v1.0.2 Released version 1.0.2

    Composer: now depends on stable version of CssMin

  • v1.0.1 Released version 1.0.1

    • tutorial updated
    • added suggest for janmarek/webloader
price-tag-2-line

Badges

guide-fill

Dependencies

php (>= 5.3.0)
Componette Componette felix@nette.org