public class CssPacker extends AbstractFilePacker
| Constructor and Description |
|---|
CssPacker(java.lang.String packerDirectory)
Creates a new CSS packer.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
minifyCSS(boolean force)
Create a minified version of all CSS found in JCMS.
|
getFilePack, getMinifiedFile, minifyFilepublic CssPacker(java.lang.String packerDirectory)
throws java.lang.Exception
packerDirectory - the relative path of the servlet/jsp that will be
outputing the packed css. MUST be specified.java.lang.IllegalArgumentException - if packerDirectory is nulljava.lang.Exception - on initialization errorpublic static void minifyCSS(boolean force)
This method only process css file if minification is enabled through property
"channel.css-packer.compressor.enabled".
Only files contained in directories css, plugins and js are processed
force - set to true to force generation of minified file even if an up to date apparently existsCopyright © 2001-2016 Jalios SA. All Rights Reserved.