ePages 6.13.1 - DE_EPAGES/JQuery/API/ClosureCompiler.pm

Package DE_EPAGES::JQuery::API::ClosureCompiler

This module provides an API for the Google ClosureCompiler Javascript minifier.

@EXPORT_OK
MinifyJavaScript
MinifyTemplate
MinifySourceCode

Functions

MinifyJavaScript

MinifyJavaScript

Minifies the javascript source code in the given source file and writes the minfied content to the target file.

Syntax
MinifyJavaScript($SourceFilePath, $TargetFilePath);
Input
$SourceFilePath (string)
javascript source (full file path and name)
$TargetFilePath (string)
target for output (full file path and name)
$hParams (ref.hash)
minifier parameters
  • Debug - debugging messages, verbose minifier (optional) - boolean