我的独立项目是使用Compass(1.0.3)和一些Compass扩展构建的。生成的源映射指向扩展的sass源文件,但由于某种原因,它们指向例如。
http://localhost/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_font-face.scss
我在Chrome的cobsole中获得404:s的文件。对于我正在使用的Compass核心混合,以及两个扩展,都会发生这种情况。显然网址不正确,但我无法弄清楚为什么它指向那里。在某处看起来像某些配置错误。
我的Gemfile:
# A sample Gemfile
source "https://rubygems.org"
# gem "rails"
gem 'sass', "3.4.10"
gem 'compass', "1.0.3"
gem 'compass-responsive-embeds', "0.0.4"
gem 'breakpoint', "2.5.0"
我的config.rb:
require 'compass/import-once/activate'
# require 'compass'
# Require any additional compass plugins here.
require 'breakpoint'
require 'compass-responsive-embeds'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "/"
sass_dir = "sass"
images_dir = "i"
fonts_dir = "fonts"
javascripts_dir = "js"
relative_assets = true
sourcemap = (environment == :production) ? false : true