Sha256: 9591b52258a387b8403d132c5d1877fdbcf3e4a7ba9a95e80e3c742dd8458ba6
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
#!/usr/bin/env ruby require 'less' # This file is inspired by / based off of http://ozmm.org/posts/argf.html def help puts <<-help Usage: $ lessc < style.less $ lessc file1.less file2.less help end if ($stdin.tty? && ARGV.empty?) || ARGV.delete('-h') || ARGV.delete('--help') help else doc = ARGF.read parser = Less::Parser.new tree = parser.parse(doc) puts tree.to_css(compress: true) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
less-execjs-2.6.0.4 | bin/lessc |
less-execjs-2.6.0.3 | bin/lessc |