示例#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);
 }
示例#2
0
 /**
  * Get the minified css.
  *
  * @param string $value
  *
  * @return string
  */
 public function css($value)
 {
     return $this->css->render($value);
 }