简体   繁体   中英

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. When running 'compass compile' it takes more than a minute to compile the output css file.

  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"否则不会编译其中的更改。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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