MiniAsset\Output\CachedCompiler::generate PHP Method

generate() public method

Generate a compiled asset, with all the configured filters applied.
public generate ( AssetTarget $build ) : The
$build MiniAsset\AssetTarget
return The processed result of $target and it dependencies.
    public function generate(AssetTarget $build)
    {
        if ($this->cacher->isFresh($build)) {
            $contents = $this->cacher->read($build);
        } else {
            $contents = $this->compiler->generate($build);
            $this->cacher->write($build, $contents);
        }
        return $contents;
    }