Class SpincastJsClosureCompilerConfigDefault
java.lang.Object
org.spincast.plugins.jsclosurecompiler.config.SpincastJsClosureCompilerConfigDefault
- All Implemented Interfaces:
SpincastJsClosureCompilerConfig
public class SpincastJsClosureCompilerConfigDefault
extends Object
implements SpincastJsClosureCompilerConfig
-
Constructor Summary
Constructors -
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 SpincastConfigbooleanIs bundling disabled?booleanWhen 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:SpincastJsClosureCompilerConfigThe name of the provided Pebble function to bundle multiple .js files.Defaults to "jsBundle".
- Specified by:
getJsBundlePebbleFunctionNamein interfaceSpincastJsClosureCompilerConfig
-
getJsBundlesUrlPath
Description copied from interface:SpincastJsClosureCompilerConfigThe relative url path to serve js files bundled using the Pebble "jsBundle()" function.Defaults to "
/spincast/plugins/jsclosurecompiler/jsbundles".- Specified by:
getJsBundlesUrlPathin interfaceSpincastJsClosureCompilerConfig
-
getJsBundlesDir
Description copied from interface:SpincastJsClosureCompilerConfigThe 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:
getJsBundlesDirin interfaceSpincastJsClosureCompilerConfig
-
isJsBundlesIgnoreSslCertificateErrors
public boolean isJsBundlesIgnoreSslCertificateErrors()Description copied from interface:SpincastJsClosureCompilerConfigWhen 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
trueifSpincastConfig.isDevelopmentMode()orSpincastConfig.isTestingMode()aretrue.- Specified by:
isJsBundlesIgnoreSslCertificateErrorsin interfaceSpincastJsClosureCompilerConfig
-
isJsBundlesDisabled
public boolean isJsBundlesDisabled()Description copied from interface:SpincastJsClosureCompilerConfigIs 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
trueifSpincastConfig.isDevelopmentMode()istrue.- Specified by:
isJsBundlesDisabledin interfaceSpincastJsClosureCompilerConfig
-