src/AssetConfig.php
public function addTarget($target, array $config)
    {
        $ext = $this->getExt($target);
        $config += [
            'files' => [],
            'filters' => [],
            'theme' => false,
            'extend' => false,
            'require' => [],
        ];
        if (!empty($config['paths'])) {
            $config['paths'] = array_map(array($this, '_replacePathConstants'), (array)$config['paths']);
        }
        $this->_targets[$target] = $config;
    }
public function addTarget($target, array $config)
    {
        $ext = $this->getExt($target);
        $config += [
            'files' => [],
            'filters' => [],
            'theme' => false,
            'extend' => false,
            'require' => [],
        ];
        if (!empty($config['paths'])) {
            $config['paths'] = array_map(array($this, '_replacePathConstants'), (array)$config['paths']);
        }
        $this->_targets[$target] = $config;
    }
public function addTarget ( $ target , array $ config ) { $ ext = $ this -> getExt ( $ target ) ; $ config += [ 'files' => [ ] , 'filters' => [ ] , 'theme' => false , 'extend' => false , 'require' => [ ] , ] ; if ( ! empty ( $ config [ 'paths' ] ) ) { $ config [ 'paths' ] = array_map ( array ( $ this , '_replacePathConstants' ) , ( array ) $ config [ 'paths' ] ) ; } $ this -> _targets [ $ target ] = $ config ; }
Create a new build target.

@param string $target Name of the target file. The extension will be inferred based on the last extension.
@param array $config Config data for the target. Should contain files, filters and theme key.
Create a new build target .