Sencha ExtJS とcompass compile
andsencha 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
可能であれば、カスタム テーマ ファイルでフォルダーを汚染したくありません。