Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

added option for compressed output #8

Merged
merged 1 commit into from

3 participants

@gerrit

No description provided.

@brendanjerwin brendanjerwin merged commit 2645144 into guard:master
@brendanjerwin
Collaborator

Thx. Merged, added a couple tests, published. (0.1.1)

I don't actually use Less anymore, so let me know if there is a problem.

@joeyhoer

New version of Less.rb (2.2.0) enables yuicompress. Should be added when version is bumped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 12, 2012
  1. @gerrit
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/guard/less.rb
View
5 lib/guard/less.rb
@@ -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))
@@ -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
Something went wrong with that request. Please try again.