문제

어떻게 사용할 수 있습니라인 숫자에서 CSS 출력을 사용할 경우 SASS?내가 찾는 기사를 하지 않았어요 매우 곳을 이해하게 수정

http://pivotallabs.com/users/damon/blog/articles/765-standup-04-07-2009-we-have-questions#comments

을 도울 수 있을까?

도움이 되었습니까?

해결책

이라는 옵션 :line_comments 이를 설정한 경우 true,사이 라인의 숫자에서 귀하의 컴파일한 출력.

을 설정하는 방법 이 옵션에 따라 사용하는 방법에서 시작되었다.는 경우에 레일이,Merb,또는 랙 응용 프로그램을 설정할 수 있습니다 Sass::Plugin.options[:line_comments] = true.

당신은 나침반을 사용하여 설정 line_comments = false 에서 당신의 구성 파일입니다.

다른 팁

당신이 사용하는 일이 스프로킷과 스프로킷-sass 보석 작업을 수행해야 할 수 있습니다 그것은 다음과 같다:

Sprockets::Sass.options[:line_comments] = true

누군가가 제안이 원숭이-치:

# Had to use this instead as per comment by @glebtv https://github.com/rails/sass-rails/issues/157
module Sass
    class Engine
      def initialize(template, options={})
        @options = self.class.normalize_options(options)
        @options[:debug_info] = true
        @template = template
      end
    end
end

원숭이-헝겊 조각,그러나 내 생각이 더 잘 작동: https://github.com/rails/sass-rails/pull/181

지금,당신은 당신을 당겨서 레일-sass 에서입니다.

group :development, :test do
  gem 'sass-rails', '~> 4.0.0', git: 'https://github.com/rails/sass-rails.git', branch: 'master'
end
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top