src/Awjudd/AssetProcessor/AssetProcessor.php
public function cdn($name, $url, $type = null)
    {
        // Check if there is a type provided
        if($type === null)
        {
            // No type provided, so derive it
            $type = substr(strrchr($url, '.'), 1);
        }

        // Grab the CDN group
        $group = config('assetprocessor.attributes.group.cdn', 'cdn');

        // Add the asset type
        $this->files[$type][$group][$name] = $url;
    }
public function cdn($name, $url, $type = null)
    {
        // Check if there is a type provided
        if($type === null)
        {
            // No type provided, so derive it
            $type = substr(strrchr($url, '.'), 1);
        }

        // Grab the CDN group
        $group = config('assetprocessor.attributes.group.cdn', 'cdn');

        // Add the asset type
        $this->files[$type][$group][$name] = $url;
    }
public function cdn ( $ name , $ url , $ type = null ) { // Check if there is a type provided if ( $ type === null ) { // No type provided, so derive it $ type = substr ( strrchr ( $ url , '.' ) , 1 ) ; } // Grab the CDN group $ group = config ( 'assetprocessor.attributes.group.cdn' , 'cdn' ) ; // Add the asset type $ this -> files [ $ type ] [ $ group ] [ $ name ] = $ url ; }
Used in order to allow for the use of a CDN for assets.

@param string $name The name of the asset file
@param string $url The URL that we'll be retrieving the assets from
@param string $type Whether the file is a JavaScript file or a CSS file (if not provided
it will derive off of the name)
@return void
Used in order to allow for the use of a CDN for assets .