AssetCompress\Shell\Task\AssetBuildTask::build PHP Method

build() public method

Build all the files declared in the Configuration object.
public build ( ) : void
return void
    public function build()
    {
        $themes = (array) $this->config->general('themes');
        foreach ($themes as $theme) {
            $this->_io->verbose('Building with theme = ' . $theme);
            $this->config->theme($theme);
            foreach ($this->factory->assetCollection() as $target) {
                if ($target->isThemed()) {
                    $this->_buildTarget($target);
                }
            }
        }
        $this->_io->verbose('Building un-themed targets.');
        foreach ($this->factory->assetCollection() as $target) {
            $this->_buildTarget($target);
        }
    }