MiniAsset\AssetConfig::addTarget PHP Method

addTarget() public method

Create a new build target.
public addTarget ( string $target, array $config )
$target string Name of the target file. The extension will be inferred based on the last extension.
$config array Config data for the target. Should contain files, filters and theme key.
    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;
    }