Rails应用程序中的断点 [英] Breakpoint in Rails app

查看:177
本文介绍了Rails应用程序中的断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mason Wendell告诉我可以在没有Compass的情况下在应用程序中使用Breakpoint。

I've been told by Mason Wendell that I can use Breakpoint in my application without Compass.

我有gem 'breakpoint', '2.4.1'在我的应用程序中 Gemfile @importbreakpoint .css.sass,但它无法找到断点。

I have gem 'breakpoint', '2.4.1' in my Gemfile and @import "breakpoint" in my application.css.sass but it fails to locate Breakpoint.

梅森声称只要找到你的导入路径来找到_breakpoint.scss部分,你应该全部设置。。

Mason stated "Just get your import paths to find the _breakpoint.scss partial and you should be all set.".

我对如何真正做到这一点感到困惑。

I'm a bit confused about how to actually do this.

有什么想法?

推荐答案


  1. 使用RubyGems提取,使用无路径 @import'breakpoint'; ,由Compass提供。

  2. 使用Bower放入项目文件夹中的子文件夹中,使用相对 @import'bower-components / breakpoint / stylesheets / breakpoint'应用。

  1. Fetch with RubyGems, apply with a pathless @import 'breakpoint';, made possible by Compass.
  2. Fetch manually with Bower into a subfolder within your project folder, apply with a relative @import 'bower-components/breakpoint/stylesheets/breakpoint'.

有一种导入方法Sass依赖与一个无路径 @import 的RubyGems安装的依赖关系,没有Compass:将RubyGems存储断点的目录放入Sass' load_paths 参数。但你应该考虑这个解决方法,而不是一个正常的工作流程。

There is a way to import Sass dependencies with a pathless @import of a RubyGems-installed dependency and without Compass: put the directory of where RubyGems stores Breakpoint into Sass' load_paths parameter. But you should consider this a workaround rather than a normal workflow.

这篇关于Rails应用程序中的断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆