slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add versioning to simple output when disabled

screamingjungle opened this issue · comments

commented

Sometimes one wants to switch off the minification but keep the cache busting/versioning on the output.

in _simple_output()

		foreach ($files as $file)
		{
			$filename = $directory . '/' . $file;

			if ($this->versioning)
			{
				$filename .= '?v=' . md5_file($filename);
			}

			$output[] = $filename;
		}

Added via #74