public class SpincastJsClosureCompilerConfigDefault extends Object implements SpincastJsClosureCompilerConfig
| Constructor and Description |
|---|
SpincastJsClosureCompilerConfigDefault(SpincastConfig spincastConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJsBundlePebbleFunctionName()
The name of the provided Pebble function to
bundle multiple .js files.
|
File |
getJsBundlesDir()
The directory where the generated js bundles
will be saved by the Pebble "jsBundle()" function.
|
String |
getJsBundlesUrlPath()
The relative url path to serve js files
bundled using the Pebble "jsBundle()" function.
|
protected SpincastConfig |
getSpincastConfig() |
boolean |
isJsBundlesIgnoreSslCertificateErrors()
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?
|
@Inject public SpincastJsClosureCompilerConfigDefault(SpincastConfig spincastConfig)
protected SpincastConfig getSpincastConfig()
public String getJsBundlePebbleFunctionName()
SpincastJsClosureCompilerConfigDefaults to "jsBundle".
getJsBundlePebbleFunctionName in interface SpincastJsClosureCompilerConfigpublic String getJsBundlesUrlPath()
SpincastJsClosureCompilerConfig
Defaults to "/spincast/plugins/jsclosurecompiler/jsbundles".
getJsBundlesUrlPath in interface SpincastJsClosureCompilerConfigpublic File getJsBundlesDir()
SpincastJsClosureCompilerConfig
Defaults to "[WRITABLE_DIR]/spincast/plugins/jsclosurecompiler/jsBundles".
where "[WRITABLE_DIR]" is SpincastConfig.getWritableRootDir().
getJsBundlesDir in interface SpincastJsClosureCompilerConfigpublic boolean isJsBundlesIgnoreSslCertificateErrors()
SpincastJsClosureCompilerConfig
By default, return true if SpincastConfig.isDevelopmentMode()
or SpincastConfig.isTestingMode() are true.
isJsBundlesIgnoreSslCertificateErrors in interface SpincastJsClosureCompilerConfigCopyright © 2019. All rights reserved.