简体   繁体   English

在Sencha Touch中管理CSS

[英]Managing CSS in Sencha Touch

Is there a way to manage the CSS for a Sencha Touch app outside of the framework? 是否可以在框架之外管理Sencha Touch应用程序的CSS?

I'm used to working with CodeKit or Grunt to manage dependencies for websites, but with Sencha Touch everything seems to be done within the framework. 我曾经使用CodeKit或Grunt来管理网站的依赖性,但是使用Sencha Touch似乎一切都在框架内完成。 I'm assuming that as long as everything gets compiled to the resources/css folder then it will be fine. 我假设只要将所有内容都编译到resources / css文件夹中就可以了。 But what about the framework resources? 但是框架资源呢? Do they get compiled to the same place or does the app make a separate request for them? 它们会被编译到同一位置还是应用程序针对它们单独发出请求?

I have no idea of CodeKit or Grunt. 我不知道CodeKit或Grunt。 Anyways in Sencha Touch all the CSS files get placed to the resources/css folder after the compilation. 无论如何,在Sencha Touch中,编译后,所有CSS文件都会放置到resources / css文件夹中。 It's the same even when we add custom CSS files or use SASS with Compass compiler. 即使我们添加自定义CSS文件或在Compass编译器中使用SASS,也是如此。

I use codekit too. 我也使用codekit。 This is my solution: CodeKit -> Preferences -> (the left side bar) OTHER TOOLS -> Compass 这是我的解决方案:CodeKit->首选项->(左侧栏)其他工具->指南针
Then select Use the compass executable at this path and choose the path you install compass 然后选择在此路径下使用罗盘可执行文件,然后选择安装罗盘的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM