public interface ResourceMinificationService
| Modifier and Type | Method and Description | 
|---|---|
| boolean | getEnabled()Indicates whether or not the system is allowed to minify bundled resources. | 
| org.springframework.core.io.Resource | minify(org.springframework.core.io.Resource originalResource)Delegates to  minify(Resource, String)where the filename argument is originalResource.getFilename(). | 
| org.springframework.core.io.Resource | minify(org.springframework.core.io.Resource originalResource,
      String filename)Given a  Resource, will return a resource that represents the minified version. | 
| byte[] | minify(String filename,
      byte[] bytes)Given the source byte[], will return a byte[] that represents the minified version of the byte[] | 
byte[] minify(String filename, byte[] bytes)
filename - bytes - boolean getEnabled()
org.springframework.core.io.Resource minify(org.springframework.core.io.Resource originalResource)
minify(Resource, String) where the filename argument is originalResource.getFilename().originalResource - org.springframework.core.io.Resource minify(org.springframework.core.io.Resource originalResource,
                                            String filename)
Resource, will return a resource that represents the minified version.orginalResource - the - name of resourceCopyright © 2020. All rights reserved.