我只是找不到解决方法,请帮助
我的 config.rb 位于 $PROJECT_HOME/assets/www/theming 位置
dir = File.dirname('..Path_to_project_home..\assets\www\theming\config.rb')
load File.join(dir, '..', 'lib', 'touch', 'resources', 'themes')
sass_path = dir
css_path = dir
environment = :production
output_style = :compressed
这是我的 app.scss:
@import 'sencha-touch/default/all';
@include sencha-panel;
@include sencha-buttons;
@include sencha-toolbar;
@include sencha-list;
@include sencha-layout;
@include sencha-sheet;
@include sencha-msgbox;
在我运行的“sass_path”目录中的控制台中
compass compile app.scss
但我收到以下错误:
File to import not found or unreadable: sencha-touch/default/all.
请帮忙,解决不了。
最佳答案
您不必在此处复制任何内容, key 在 config.rb 文件中。你会看到这样一行:
load File.join(dir, '..', '..', 'touch', 'resources', 'themes')
这告诉罗盘从哪里加载 sencha touch 的 sass 文件。翻译为:
../../touch/resources/themes
因此,如果您想象使用 cd 将目录移动到 ST 主题目录,这就是您需要修改 File.join 行的内容。例如,如果您的目录结构如下:
/东西 /资源 /萨斯 配置文件 /小贩 /sencha-touch.2.2.1 /资源 /主题
你需要这样一行:
load File.join(dir, '..', '..', '../', 'vendor', 'sencha-touch.2.2.1', 'resources', 'themes')
如果有疑问,只需转到包含您的 config.rb 的目录并完善一个带您到该目录的 cd
关于sencha-touch - 主题 Sencha 触摸错误 : File to import not found or unreadable: sencha-tou ch/default/all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8254972/