juzu.plugin.asset

## Interface Minifier

- All Known Implementing Classes:
    NormalizeJSMinifier

      public interface Minifier

  The interface implemented by an asset minifier, an asset minifier should implement this interface and provide a public no-arg constructor. Implementations can be used by application in asset declarations.

  Author:
    Julien Viet

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `minify(String name, String type, InputStream stream)` Minify an asset.

- - ### Method Detail

    - #### minify

          InputStream minify(String name,
                           String type,
                           InputStream stream)
                             throws IOException

      Minify an asset.
      Parameters:
        `name` - the asset value, for instance `jquery.js`
        `type` - the asset type: `script` or `stylesheet`
        `stream` - the asset stream
      Returns:
        a stream that will produce the asset
      Throws:
        `IOException` - any io exception that would prevent minification to happen

Copyright © 2016 eXo Platform SAS. All rights reserved.