Is it possible to make compass compile only modified partials?

我们两清 提交于 2019-12-12 04:09:48

问题


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?

回答1:


Compass will compile only modified files if you use compass watch [path/to/project].




回答2:


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



来源:https://stackoverflow.com/questions/23603903/is-it-possible-to-make-compass-compile-only-modified-partials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!