protected function shouldRegisterBladeDirective()
    {
        if (!$this->app['config']->get('criticalcss.blade_directive')) {
            return false;
        }

        if ($this->app->runningInConsole()) {
            return false;
        }

        return true;
    }