Stud.IP  4.1 Revision
Compressor Class Reference
Collaboration diagram for Compressor:
Collaboration graph

Public Member Functions

 __construct ($configuration)
 
 compress ($paths)
 
 shouldCompress ()
 
 hasJsCompressor ()
 
 callJsCompressor ($js)
 
 hasCssCompressor ()
 
 callCssCompressor ($css)
 

Data Fields

const JS_COMPRESSOR = 'uglifyjs'
 
const JS_OPTIONS = '--compress --mangle --'
 
const CSS_COMPRESSOR = 'cleancss'
 
const CSS_OPTIONS = '--skip-rebase -O 2'
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $configuration)

Member Function Documentation

◆ callCssCompressor()

callCssCompressor (   $css)

◆ callJsCompressor()

callJsCompressor (   $js)
Here is the caller graph for this function:

◆ compress()

compress (   $paths)
Here is the call graph for this function:

◆ hasCssCompressor()

hasCssCompressor ( )

◆ hasJsCompressor()

hasJsCompressor ( )
Here is the caller graph for this function:

◆ shouldCompress()

shouldCompress ( )
Here is the caller graph for this function:

Field Documentation

◆ CSS_COMPRESSOR

const CSS_COMPRESSOR = 'cleancss'

◆ CSS_OPTIONS

const CSS_OPTIONS = '--skip-rebase -O 2'

◆ JS_COMPRESSOR

const JS_COMPRESSOR = 'uglifyjs'

◆ JS_OPTIONS

const JS_OPTIONS = '--compress --mangle --'

The documentation for this class was generated from the following file: