Interface SpincastJsClosureCompilerConfig

All Known Implementing Classes:
SpincastJsClosureCompilerConfigDefault

public interface SpincastJsClosureCompilerConfig
Spincast JS Closure Compiler plugin configurations.
  • Method Summary

    Modifier and Type
    Method
    Description
    The 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.
    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?
  • Method Details

    • getJsBundlePebbleFunctionName

      String getJsBundlePebbleFunctionName()
      The name of the provided Pebble function to bundle multiple .js files.

      Defaults to "jsBundle".

    • getJsBundlesUrlPath

      String getJsBundlesUrlPath()
      The relative url path to serve js files bundled using the Pebble "jsBundle()" function.

      Defaults to "/spincast/plugins/jsclosurecompiler/jsbundles".

    • getJsBundlesDir

      File getJsBundlesDir()
      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]" is SpincastConfig.getWritableRootDir().

    • isJsBundlesIgnoreSslCertificateErrors

      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?

      By default, return true if SpincastConfig.isDevelopmentMode() or SpincastConfig.isTestingMode() are true.

    • isJsBundlesDisabled

      boolean isJsBundlesDisabled()
      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 if SpincastConfig.isDevelopmentMode() is true.