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.js
type
- the asset type: script
or stylesheet
stream
- the asset streamIOException
- any io exception that would prevent minification to happenCopyright © 2015 eXo Platform SAS. All rights reserved.