Esempio n. 1
0
 /**
  * Get the minified value.
  *
  * @param string $value
  *
  * @return string
  */
 public function render($value)
 {
     $options = ['cssMinifier' => function ($css) {
         return $this->css->render($css);
     }, 'jsMinifier' => function ($js) {
         return $this->js->render($js);
     }, 'jsCleanComments' => true];
     return Minify_HTML::minify($value, $options);
 }
Esempio n. 2
0
 /**
  * Get the minified js.
  *
  * @param string $value
  *
  * @return string
  */
 public function js($value)
 {
     return $this->js->render($value);
 }