public function runMinificationRules($contents)
    {
        do {
            $originalContents = $contents;
            $contents = preg_replace(array_keys($this->minifyRules), array_values($this->minifyRules), $contents);
        } while ($originalContents != $contents);

        return $contents;
    }