Class SpincastJsClosureCompilerConfigDefault
java.lang.Object
org.spincast.plugins.jsclosurecompiler.config.SpincastJsClosureCompilerConfigDefault
- All Implemented Interfaces:
SpincastJsClosureCompilerConfig
public class SpincastJsClosureCompilerConfigDefault
extends Object
implements SpincastJsClosureCompilerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the provided Pebble function to bundle multiple .js files.The directory where the generated js bundles will be saved by the Pebble "jsBundle()" function.The relative url path to serve js files bundled using the Pebble "jsBundle()" function.protected SpincastConfig
boolean
Is bundling disabled?boolean
When creating a JS bundle using the Pebble "jsBundle()" function, should we ignore SSL certificate errors such as errors for self-signed certificates when performing the requests to retrieve the Javascript files?
-
Constructor Details
-
SpincastJsClosureCompilerConfigDefault
-
-
Method Details
-
getSpincastConfig
-
getJsBundlePebbleFunctionName
Description copied from interface:SpincastJsClosureCompilerConfig
The name of the provided Pebble function to bundle multiple .js files.Defaults to "jsBundle".
- Specified by:
getJsBundlePebbleFunctionName
in interfaceSpincastJsClosureCompilerConfig
-
getJsBundlesUrlPath
Description copied from interface:SpincastJsClosureCompilerConfig
The relative url path to serve js files bundled using the Pebble "jsBundle()" function.Defaults to "
/spincast/plugins/jsclosurecompiler/jsbundles
".- Specified by:
getJsBundlesUrlPath
in interfaceSpincastJsClosureCompilerConfig
-
getJsBundlesDir
Description copied from interface:SpincastJsClosureCompilerConfig
The directory where the generated js bundles will be saved by the Pebble "jsBundle()" function.Defaults to "
[WRITABLE_DIR]/spincast/plugins/jsclosurecompiler/jsBundles
". where "[WRITABLE_DIR]
" isSpincastConfig.getWritableRootDir()
.- Specified by:
getJsBundlesDir
in interfaceSpincastJsClosureCompilerConfig
-
isJsBundlesIgnoreSslCertificateErrors
public boolean isJsBundlesIgnoreSslCertificateErrors()Description copied from interface:SpincastJsClosureCompilerConfig
When creating a JS bundle using the Pebble "jsBundle()" function, should we ignore SSL certificate errors such as errors for self-signed certificates when performing the requests to retrieve the Javascript files?By default, return
true
ifSpincastConfig.isDevelopmentMode()
orSpincastConfig.isTestingMode()
aretrue
.- Specified by:
isJsBundlesIgnoreSslCertificateErrors
in interfaceSpincastJsClosureCompilerConfig
-
isJsBundlesDisabled
public boolean isJsBundlesDisabled()Description copied from interface:SpincastJsClosureCompilerConfig
Is bundling disabled?This is useful during development when you want changes to the JS files to be reflected and not be cached.
By default, return
true
ifSpincastConfig.isDevelopmentMode()
istrue
.- Specified by:
isJsBundlesDisabled
in interfaceSpincastJsClosureCompilerConfig
-