Class JsExtension.JsCompressor

    • Constructor Detail

      • JsCompressor

        public JsCompressor()
    • Method Detail

      • compress

        public String compress​(String source)
        Description copied from interface: SxCompressor
        Compresses the given script, making it smaller and less readable, but with the same behavior.
        Specified by:
        compress in interface SxCompressor
        Parameters:
        source - The uncompressed script
        Returns:
        A compressed version of the input source
      • getSourceMap

        public String getSourceMap()
        Returns:
        the last source map that was created by this compressor