Tôi đã cài đặt nền tảng và khi tôi chỉnh sửa và lưu tệp app.scss, tệp này tạo tệp "app.css" và tệp "config.rb" trong thư mục sass của dự án của tôi. khi tôi mở rằng "app.css" tập tin tôi có được điều nàyLỗi cú pháp: Tệp để nhập không tìm thấy hoặc không đọc được: nền tảng/common/ratios
Syntax error: File to import not found or unreadable: foundation/common/ratios.
và sau đó dưới mà tôi có được điều này:
File to import not found or unreadable: foundation/common/ratios.
Load paths:
/Applications/MAMP/htdocs/WebApp02/sass
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 1 of /Applications/MAMP/htdocs/WebApp02/sass/_settings.scss
from line 2 of /Applications/MAMP/htdocs/WebApp02/sass/app.scss
và sau đó một loạt các đường dẫn đến đá quý của tôi.
Nó chưa bao giờ tạo tệp app.css và config.rb trong thư mục sass của tôi trước khi tôi tự hỏi liệu có ai có thể giải thích lý do tại sao điều đó đang xảy ra hay không. La bàn vẫn tuân thủ app.css trong thư mục "biểu định kiểu" nhưng tôi muốn sửa lỗi này để tránh bất kỳ lỗi nào trong tương lai xảy ra.
tập tin config.rb trông giống như cùng một lỗi này
require 'zurb-foundation'
Require any additional compass plugins here.
Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
You can select your preferred output style here (can be overridden via the command line):
output_style = :expanded or :nested or :compact or :compressed
To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
config.rb của bạn trông như thế nào? – cimmanon
Tôi đã thêm nội dung config.rb vào câu hỏi gốc –