Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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
imj
デジタルマーケティングやWebインテグレーションを行っているアイ・エム・ジェイのフロントエンドエンジニアチームです。
http://www.imjp.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away