简体   繁体   English

是否可以使指南针仅编译修改的部分?

[英]Is it possible to make compass compile only modified partials?

We use compass/sass in a large-scale project, with hundreds of partial scss files. 我们在一个大型项目中使用罗盘/ ass,它包含数百个部分的scss文件。 When running 'compass compile' it takes more than a minute to compile the output css file. 运行“ compass compile”时,需要花费一分钟多的时间来编译输出的css文件。

  1. Does compass use caching on a partial level? 罗盘是否在部分级别上使用缓存?
  2. Is it possible to force compass to compile only the modified files? 是否可以强制罗盘仅编译已修改的文件?
  3. Is it possible to run compass in a 'verbose' mode so I can understand how the cache is being used? 是否可以在“详细”模式下运行指南针,以便我了解缓存的使用方式?

如果使用compass watch [path/to/project]指南针将仅编译修改后的文件。

您应该使用罗盘监视来仅编译已修改的文件,但是如果您有任何部分,则除非您将导入路径添加为config.rb,例如add_import_path "stylesheets/sass"否则不会编译其中的更改。

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

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