Created
May 31, 2013 02:49
-
-
Save wataru420/5682692 to your computer and use it in GitHub Desktop.
Compassを使った環境ごとの画像URLの書き換え ref: http://qiita.com/items/fd5ee4764a4049da4619
This file contains 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
css_dir = "src/main/webapp/css/" | |
sass_dir = "src/main/webapp/scss/" | |
images_dir = "src/main/webapp/" | |
output_style = :compressed | |
DEV= 'http://dev.stat.example.jp/hoge/' | |
PRD = 'http://stat.example.jp/hoge/' | |
http_images_path = (environment == :production) ? PRODUCT : STAGING |
This file contains 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
@charset "UTF-8"; | |
.bar { | |
background: #0A7995 image-url("ratio20/images/hoge.png") no-repeat center center; | |
} |
This file contains 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
compass compile -e production --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment