1

when I add less to the Guardfile like so:

guard 'less', :output => 'css/' do watch(%r{^less/(.+.less)$}) end

since I have multiple less files, imported them all in one less file, and I want watch all of them but to compile just one, how to do that?

1 Answer 1

0

Create a custom function and test if the css file matching your less file is older. If not then compile the file - the first matched file is compiled by less and all linked less files will have newer css files and therefore will not be processed.

1
  • Any examples of how to do actually do so?
    – samer.ali
    Nov 12, 2015 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.