Documentation ¶
Overview ¶
Package asset provides compression of CSS and JavaScript files.
Index ¶
Constants ¶
View Source
const ( JS_COMPILATION_LEVEL_ADVANCED_OPTIMIZATIONS = "ADVANCED_OPTIMIZATIONS" JS_COMPILATION_LEVEL_SIMPLE_OPTIMIZATIONS = "SIMPLE_OPTIMIZATIONS" JS_COMPILATION_LEVEL_WHITESPACE_ONLY = "WHITESPACE_ONLY" )
Compilation levels supported by Closure Compiler
Variables ¶
This section is empty.
Functions ¶
func CompileCss ¶
func CompileCss(sourceFilenames []string, destinationFilename string, compilerArguments []string, resultChan, progressChan chan<- string, errorChan chan<- error)
CompileCss executes Closure Stylesheets to merge and compile all CSS code into a single file. The file is written to the webroot directory, its filename is a Unix timestamp in base 62.
func CompileJs ¶
func CompileJs(sourceFilenames []string, destinationFilename string, jsCompilationLevel string, verbose bool, resultChan, progressChan chan<- string, errorChan chan<- error)
CompileJs executes Closure Compiler to merge and compile all JavaScript code into a single file. The file is written to the webroot directory, its filename is a Unix timestamp in base 62.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.