지난 며칠간 Mac OSX에서 SASS 및 Compass와 어려움을 겪고 있습니다.SASS & Compass Watch 가져 오기 실패
아래와 같은 설정이 있습니다. (정확도는입니다.)
필자는 한 사이트를 수행하지만 이러한 설정을 내 config.rb 내부 proxysite1.com
/라이브러리/웹 서버/문서
/WebProxy-Network
/Global_Assets
/_alerts.scss
/_badges.scss
/_breadcrumbs.scss
/_button-groups.scss
/_buttons.scss
/_carousel.scss
/_close.scss
/_code.scss
/_dropdowns.scss
/_forms.scss
/_grid.scss
/_labels.scss
/_print.scss
/_bootstrap.scss (all the files above import into this one and will use shared by all the sites)
/Asia
/USA
/EU
/UK
/www.proxysite1.com
/scss
_variables.scss
_overrides.scss
styles.scss (this imports _sass-bootstrap.scss, _variables.scss & overrides.scss)
/css
styles.css (ok so this should be the FINAL output unique for each site)
/js
/images
/index.inc.php
/index.php
/config.rb
아래 40과 동일한 구조가있다 : 내/SCS들 폴더 파일 styles.scss 내부 지금
# Require any additional compass plugins here.
load "../../Global_Assets/Bootstrap3"
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
,691 나는이 단자를 통해이 경로를 방문 할 때 지금)
오른쪽 그래서 잠시했다하지만 난 내가 잘못된거야 위치에 대한 좋은 조언을 얻기 위해 원하는
// Site Overrides
@import "overrides";
// Site Variables
@import "variables";
// Bootstrap3 SASS Framework
@import "bootstrap";
: 363,210
나는 다음이
/Library/WebServer/Documents/WebProxy-Network/UK/www.proxysite1.com/
하고 명령 "나침반 시계"나는 다음과 같은 메시지가 얻을 실행
Ants-MacBook-Pro:www.antproxy.com Ant$ compass watch
>>> Change detected at 10:17:28 to: styles.scss
error scss/styles.scss (Line 24: File to import not found or unreadable: sass-bootstrap.
Load paths:
/Library/WebServer/Documents/WebProxy-Network/UK/www.antproxy.com/scss
/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)
overwrite css/styles.css
>>> Compass is watching for changes. Press Ctrl-C to Stop.
을
잘하면이 부분은 내가 잘못 가고있는 곳으로가는 좋은 통찰력을 얻는 데 필요한 충분한 정보입니다. 희망 사항은 확실하고 올바른 길을 가고 있습니다 :)
BTW의 생각은 그렇게 할 수있었습니다. 각 사이트마다 다른 글꼴을 지정하여 색상 글꼴 등을 변경할 수 있지만 레이아웃 스타일과 기능 스타일을 공유 할 수 있습니다.
사이트 루트에 자산이 없습니다. 내 나쁜, 그리고 네, 톰의 부트 스트랩 - 새 스를 사용하고 있습니다. 구조에있는 모든 파일을 나열하지 않았습니다. 나는 모든 사이트에서 Hense의 부트 스트랩 3 패키지를 반복하고 싶지 않습니다. 모든 사이트에서 공유하도록 만들려고 노력했습니다. 그리고 각각 가변 파일과 각각 재정의 파일 만 제공하려고했습니다. 핵심 프레임 워크 공유를 유지합니다. –
아 좋아, "bootstrap-sass"보석을 설치했다면 가져 오는 부트 스트랩과 충돌 할 수 있으므로 bootstrap.scss 파일의 이름을 변경해야합니다. 그런 다음 이름이 바뀌면 import 문을 다음과 같이 변경하십시오. @import "bootstrap"; –
또한 require를 config.rb 파일에 추가하는 것을 잊지 마십시오. require 'bootstrap-sass' –