The latest release of lein-resource, 0.3.4, adds support for a new flag, :update which when set to true checks time stamps before processing source files. This provides a way to remove unnecessary copying and filtering if the source file has not been modified.
While it could potentially save time, it should not be used if build sensitive stencil filtering is used on any of the source files. For example, if the source contains a {{timestamp}} tag then setting :update to true would prevent the file from being recreated on each build. The suggestion therefore is to only set :update to true when :skip-stencil is also true.
The default is false or to always overwrite the destination file.
No comments:
Post a Comment