2012-06-25 2 views
0

Sencha ExtJS 및 compass compilesencha splice 명령을 사용하여 사용자 정의 테마를 만들었습니다.잘못된 이미지 폴더를 가리키는 ExtJS의 사용자 테마

/ext-4.1.0 -- This is where the stock SDK resides 
/resources -- copied from the SDK template, as per the instructions 
/resources/sass -- This is where my SASS and confif.rb file reside 
/resources/css -- This is where compass compiles my my-ext-theme.css 
/resources/images/foo/bar.gif -- This is where sencha splice creates my GIFs. 

문제는, 새로 컴파일 /resources/css/my-ext-theme.css../../ext-4.1.0/resources/themes/images/default/foo/bar.gif 같은 상대 경로와 모든 이미지에 언급하고 다음과 같이

나는 폴더 구조를 가지고있다.

사용자 정의 이미지 대신 스톡 이미지 폴더를 참조하는 사용자 정의 테마가 컴파일되는 이유는 무엇입니까? 나는 사용자 정의 테마 파일 가능하다면 내 ext-4.1.0 폴더를 오염 싶지 않아

$ext_path = "../../ext-4.1.0" 
sass_path = File.dirname(__FILE__) 
css_path = File.join(sass_path, "..", "css") 
load File.join(File.dirname(__FILE__), $ext_path, 'resources', 'themes') 

: 여기

config.rb 파일의 주요 매개 변수입니다.

답변

1

여기의 설명서에 언급 된 "버그"는 4.0.7뿐만 아니라 버전 4.1.0에도 적용됩니다. 설명 된대로 utils.rb 파일을 변경하면 상대 경로 문제가 수정되었습니다.

http://www.sencha.com/learn/theming/