Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Minifier: No output at all #811

Closed
philippgerard opened this issue Jul 9, 2013 · 0 comments
Closed

[BUG] Minifier: No output at all #811

philippgerard opened this issue Jul 9, 2013 · 0 comments

Comments

@philippgerard
Copy link

The target file is written, but always empty. Both when using CSSMin or JSMin. I followed – afaik – the code in the docs to the letter and I don't get to see any debug output anywhere, no exceptions, notices, nothing.

The link to the file is also correct and the request returns the existing but empty file.

Oh, and yes, I was using the latest HEAD from git and recompiled phalcon specifically for this test.

Any ideas? :/

class Controller extends \Phalcon\Mvc\Controller
{

    const CACHE = 'cache/';

    public function initialize()
    {
        Tag::setTitle($this->config->application->title);

        $this->assets
            ->collection('header')
            ->setTargetPath(self::CACHE . 'core.css')
            ->setTargetUri(self::CACHE . 'core.css')
            ->addCss('styles/normalize.css')
            ->addCss('styles/bootstrap.css')
            ->addCss('styles/bootstrap-responsive.css')
            ->addCss('styles/font-awesome.css')
            ->addCss('styles/app.css')
            ->join(true)
            ->addFilter(new \Phalcon\Assets\Filters\Cssmin());

        $this->assets
            ->collection('footer')
            ->setTargetPath(self::CACHE . 'core.js')
            ->setTargetUri(self::CACHE . 'core.js')
            ->addJs('scripts/modernizr.js')
            ->addJs('scripts/jquery.js')
            ->addJs('scripts/bootstrap.js')
            ->addJs('scripts/app.js')
            ->join(true)
            ->addFilter(new \Phalcon\Assets\Filters\Jsmin());
    }

}
@ghost ghost mentioned this issue Jul 10, 2013
niden added a commit that referenced this issue Jul 23, 2013
Fix bug #821 and #811 Minifier: No output at all
@phalcon phalcon closed this as completed Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant