Skip to content

Instantly share code, notes, and snippets.

@wataru420
Created May 31, 2013 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wataru420/5682692 to your computer and use it in GitHub Desktop.
Save wataru420/5682692 to your computer and use it in GitHub Desktop.
Compassを使った環境ごとの画像URLの書き換え ref: http://qiita.com/items/fd5ee4764a4049da4619
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
@charset "UTF-8";
.bar {
background: #0A7995 image-url("ratio20/images/hoge.png") no-repeat center center;
}
compass compile -e production --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment