Skip to content

Commit

Permalink
added option for compressed output
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrit committed Mar 12, 2012
1 parent ba2db5c commit d0dd102
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/guard/less.rb
Expand Up @@ -15,7 +15,8 @@ def initialize(watchers=[], options={})
:all_after_change => true,
:all_on_start => true,
:output => nil,
:import_paths => []
:import_paths => [],
:compress => false
}

super(watchers, defaults.merge(options))
Expand Down Expand Up @@ -80,7 +81,7 @@ def compile(lessfile, cssfile)
File.open(lessfile,'r') do |infile|
File.open(cssfile,'w') do |outfile|
tree = parser.parse(infile.read)
outfile << tree.to_css
outfile << tree.to_css(:compress => options[:compress])
end
end
true
Expand Down

0 comments on commit d0dd102

Please sign in to comment.