public function js(array $files, $outputFile)
    {
        if ($this->production) {
            return '<script src="' . $outputFile . '"></script>';
        }

        $this->minify($files, $outputFile, $this->jsMinifiers);

        $scripts = [];

        foreach ($files as $file) {
            $scripts[] = '<script src="' . $file . '"></script>';
        }

        return implode("\n", $scripts);
    }
public function js(array $files, $outputFile)
    {
        if ($this->production) {
            return '<script src="' . $outputFile . '"></script>';
        }

        $this->minify($files, $outputFile, $this->jsMinifiers);

        $scripts = [];

        foreach ($files as $file) {
            $scripts[] = '<script src="' . $file . '"></script>';
        }

        return implode("\n", $scripts);
    }
public function js ( array $ files , $ outputFile ) { if ( $ this -> production ) { return '<script src="' . $ outputFile . '"></script>' ; } $ this -> minify ( $ files , $ outputFile , $ this -> jsMinifiers ) ; $ scripts = [ ] ; foreach ( $ files as $ file ) { $ scripts [ ] = '<script src="' . $ file . '"></script>' ; } return implode ( "\n" , $ scripts ) ; }
Combines and minifies JS files

@param string[] $files      List of files to combine and minify
@param string   $outputFile The output filename (this is relative to the base path)

@return string The HTML of the generated stylesheet tag(s)
Combines and minifies JS files