public function renderRequireJs($compressed = true)
    {
        if ($compressed && !$this->buildFileExists()) {
            // TODO throw exception ?
            $compressed = false;
        }

        return $this->template->render([
            'compressed' => $compressed,
            'build_path' => $this->config['build_path'],
            'config'     => $this->provider->getMainConfig(),
        ]);
    }