0

Sencha ExtJS とcompass compileandsencha spliceコマンドを使用してカスタム テーマを作成しました。

次のようなフォルダー構造があります。

/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です。

カスタム テーマが、カスタムイメージではなくストックイメージ フォルダーを参照するようにコンパイルされるのはなぜですか?

私のconfig.rbファイルの主要なパラメータは次のとおりです。

$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')

ext-4.1.0可能であれば、カスタム テーマ ファイルでフォルダーを汚染したくありません。

4

1 に答える 1

1

ここのドキュメントで言及されている「バグ」は、4.0.7 だけでなく、バ​​ージョン 4.1.0 にも適用されるようです。utils.rb説明に従ってファイルを変更すると、相対パスの問題が修正されました。

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

于 2012-06-25T20:33:25.987 に答える