Statistics
37557
5
1
2.1y
Badges
Dependencies

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

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com