Created
May 15, 2013 14:13
-
-
Save ysakmrkm/5584278 to your computer and use it in GitHub Desktop.
Compass設定ファイル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Require any additional compass plugins here. | |
| require 'ruby-growl' | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "img" | |
| javascripts_dir = "js" | |
| #何も書かなければデフォルトは:development | |
| #environment = :production | |
| # You can select your preferred output style here (can be overridden via the command line): | |
| # output_style = :expanded or :nested or :compact or :compressed | |
| output_style = (environment == :production) ? :compressed : :expanded | |
| # To enable relative paths to assets via compass helper functions. Uncomment: | |
| relative_assets = true | |
| # To disable debugging comments that display the original location of your selectors. Uncomment: | |
| line_comments = false | |
| sass_options = (environment == :production) ? { :debug_info => false } : { :debug_info => true } | |
| # If you prefer the indented syntax, you might want to regenerate this | |
| # project again passing --syntax sass, or you can uncomment this: | |
| # preferred_syntax = :sass | |
| # and then run: | |
| # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass | |
| # 除算時小数点以下表示桁数 | |
| Sass::Script::Number.precision = 10 | |
| # Growl通知 | |
| # スプライト画像保存時 | |
| on_sprite_saved do |filename| | |
| g = Growl.new "localhost", "ruby-growl" | |
| g.add_notification "ruby-growl Notification" | |
| g.notify "ruby-growl Notification", "It came from ruby-growl!", | |
| "#{File.basename(filename)} updated!" | |
| end | |
| # CSSファイル保存時 | |
| on_stylesheet_saved do |filename| | |
| g = Growl.new "localhost", "ruby-growl" | |
| g.add_notification "ruby-growl Notification" | |
| g.notify "ruby-growl Notification", "It came from ruby-growl!", | |
| "#{File.basename(filename)} updated!" | |
| end | |
| # CSSファイルエラー発生時 | |
| on_stylesheet_error do |filename, message| | |
| g = Growl.new "localhost", "ruby-growl" | |
| g.add_notification "ruby-growl Notification" | |
| g.notify "ruby-growl Notification", "It came from ruby-growl!", | |
| "#{File.basename(filename)}: #{message}" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment