4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

compassでscssディレクトリをプロジェクトルート外に設定する

Posted at

src、tmp、publicを分けるような、ジェネレータ系の構成にしたいときのconfig.rb設定。
project_pathを設定して、sass_dirはそこから相対で指定する。

config.rb
http_path = "/"
project_path = "src"
css_dir = "css"
sass_dir = "../scss"
images_dir = "images"
javascripts_dir = "js"

asset_cache_buster :none

if (environment == :production)
  output_style = :compressed
else
  output_style = :expanded
end

relative_assets = true
line_comments = false
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?