src/Minifiers/Base.php
private function lookForPreMinifiedAsset()
    {
        $min_path = (string)Str::s($this->file->getRealPath())->replace
        (
            '.'.$this->file->getExtension(),
            '.min.'.$this->file->getExtension()
        );

        if (!file_exists($min_path)) return false;

        return file_get_contents($min_path);
    }
private function lookForPreMinifiedAsset()
    {
        $min_path = (string)Str::s($this->file->getRealPath())->replace
        (
            '.'.$this->file->getExtension(),
            '.min.'.$this->file->getExtension()
        );

        if (!file_exists($min_path)) return false;

        return file_get_contents($min_path);
    }
private function lookForPreMinifiedAsset ( ) { $ min_path = ( string ) Str :: s ( $ this -> file -> getRealPath ( ) ) -> replace ( '.' . $ this -> file -> getExtension ( ) , '.min.' . $ this -> file -> getExtension ( ) ) ; if ( ! file_exists ( $ min_path ) ) return false ; return file_get_contents ( $ min_path ) ; }
If we can find a pre-minified version of the file lets use that,
no point doing more work than we have to. Plus the vendor supplied
minified versions will probably be better optimised.

@return string|bool Either preminified source code or false.
If we can find a pre - minified version of the file lets use that no point doing more work than we have to . Plus the vendor supplied minified versions will probably be better optimised .