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.
| Modifier and Type | Method and Description |
|---|---|
InputStream |
minify(String name,
String type,
InputStream stream)
Minify an asset.
|
InputStream minify(String name, String type, InputStream stream) throws IOException
name - the asset value, for instance jquery.jstype - the asset type: script or stylesheetstream - the asset streamIOException - any io exception that would prevent minification to happenCopyright © 2017 eXo Platform SAS. All rights reserved.