MatthiasMullie\Minify\Minify::minify PHP Method

minify() public method

Minify the data & (optionally) saves it to a file.
public minify ( string[optional] $path = null ) : string
$path string[optional]
return string The minified data
    public function minify($path = null)
    {
        $content = $this->execute($path);
        // save to path
        if ($path !== null) {
            $this->save($content, $path);
        }
        return $content;
    }