services/frontend/jsqueeze.php
#!/usr/bin/php
<?php
$config = [
'git_urls' => ['https://github.com/tchwork/jsqueeze.git' => 'jsqueeze/'],
'autoload_config' => ['jsqueeze/src/' => 'Patchwork'],
'example' => function () {
$js = ' function hello_world ( i , v ) { return " " ; } ';
var_dump($js);
$jz = new \Patchwork\JSqueeze();
$min = $jz->squeeze($js, true, true, false);
var_dump($min);
},
];
if ($return_config) {
return $config;
} require_once __DIR__ . '/_yf_autoloader.php'; new yf_autoloader($config);