Class SpincastCssYuiCompressorConfigDefault
java.lang.Object
org.spincast.plugins.cssyuicompressor.config.SpincastCssYuiCompressorConfigDefault
- All Implemented Interfaces:
SpincastCssYuiCompressorConfig
public class SpincastCssYuiCompressorConfigDefault
extends Object
implements SpincastCssYuiCompressorConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the provided Pebble function to bundle multiple .css files.The directory where the generated css bundles will be saved by the Pebble "cssBundle()" function.The relative url path to serve css files bundled using the Pebble "cssBundle()" function.protected SpincastConfig
boolean
Is bundling disabled?boolean
When creating a CSS bundle using the Pebble "cssBundle()" function, should we ignore SSL certificate errors such as errors for self-signed certificates when performing the requests to retrieve the CSS files?
-
Constructor Details
-
SpincastCssYuiCompressorConfigDefault
-
-
Method Details
-
getSpincastConfig
-
getCssBundlePebbleFunctionName
Description copied from interface:SpincastCssYuiCompressorConfig
The name of the provided Pebble function to bundle multiple .css files.Defaults to "cssBundle".
- Specified by:
getCssBundlePebbleFunctionName
in interfaceSpincastCssYuiCompressorConfig
-
getCssBundlesUrlPath
Description copied from interface:SpincastCssYuiCompressorConfig
The relative url path to serve css files bundled using the Pebble "cssBundle()" function.Defaults to "
/spincast/plugins/cssyuicompressor/cssbundles
".- Specified by:
getCssBundlesUrlPath
in interfaceSpincastCssYuiCompressorConfig
-
getCssBundlesDir
Description copied from interface:SpincastCssYuiCompressorConfig
The directory where the generated css bundles will be saved by the Pebble "cssBundle()" function.Defaults to "
[WRITABLE_DIR]/spincast/plugins/cssyuicompressor/cssBundles
". where "[WRITABLE_DIR]
" isSpincastConfig.getWritableRootDir()
.- Specified by:
getCssBundlesDir
in interfaceSpincastCssYuiCompressorConfig
-
isCssBundlesIgnoreSslCertificateErrors
public boolean isCssBundlesIgnoreSslCertificateErrors()Description copied from interface:SpincastCssYuiCompressorConfig
When creating a CSS bundle using the Pebble "cssBundle()" function, should we ignore SSL certificate errors such as errors for self-signed certificates when performing the requests to retrieve the CSS files?By default, return
true
ifSpincastConfig.isDevelopmentMode()
orSpincastConfig.isTestingMode()
aretrue
.- Specified by:
isCssBundlesIgnoreSslCertificateErrors
in interfaceSpincastCssYuiCompressorConfig
-
isCssBundlesDisabled
public boolean isCssBundlesDisabled()Description copied from interface:SpincastCssYuiCompressorConfig
Is bundling disabled?This is useful during development when you want changes to the CSS files to be reflected and not be cached.
By default, return
true
ifSpincastConfig.isDevelopmentMode()
istrue
.- Specified by:
isCssBundlesDisabled
in interfaceSpincastCssYuiCompressorConfig
-