uglify

Compress assets via uglifying (aka minifying) them with yuglify. This takes in javascript or css and can output code with the same functionality at a fraction of the size.

string
uglify
(
string source
,
bool js = true
)

Parameters

source
Type: string

Source code to pass to yuglify.

js
Type: bool

If this is javascript or css. Default true for javascript.

Return Value

Type: string

The inputted source code without formatting which results in a size decrease.

Meta