是否可以使指南针仅编译修改的部分? [英] Is it possible to make compass compile only modified partials?

查看:114
本文介绍了是否可以使指南针仅编译修改的部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在一个大型项目中使用罗盘/ ass,其中包含数百个部分的scss文件。运行指南针编译时,需要花费一分钟多的时间来编译输出的CSS文件。

We use compass/sass in a large-scale project, with hundreds of partial scss files. When running 'compass compile' it takes more than a minute to compile the output css file.


  1. 指南针是否在部分级别上使用缓存?

  2. 是否可以强制指南针仅编译已修改的文件?

  3. 是否可以在详细模式下运行指南针,因此我可以理解缓存的使用方式吗?


推荐答案

您应该使用指南针手表来编译仅修改过的文件,但如果有任何部分,除非您将导入路径(例如 add_import_path stylesheets / sass 添加到您的config.rb中),否则不会编译其中的更改。

You should use compass watch to compile only modified files but if you have any partials ,changes in them won't be compiled unless you add import path as for example add_import_path "stylesheets/sass" into your config.rb

这篇关于是否可以使指南针仅编译修改的部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆