protected function createAssetArray($name)
    {
        $config = $this->getConfig($name, 'assets', array());
        $assets = array();
        foreach ($config as $asset) {
            // existing asset definition
            if ($this->assets->has($asset)) {
                $assets[] = $this->assets->get($asset);
            }
            // looks like a file
            elseif (str_contains($asset, array('/', '.', '-'))) {
                $assets[] = $this->parseAssetDefinition($asset);
            }
            // unknown asset
            else {
                throw new \InvalidArgumentException("No asset '$asset' defined");
            }
        }

        return $assets;
    }