Sha256: 4a3c593b747f3a8abb0064f4f23e4afcd22c9387c24b62fc708a4b93f666573e
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/glimmer/css/css_minifier' usage = "***Glimmer DSL for CSS - CSS Minifier***\nUsage: minify_css path_to_css_file" # TODO support option to select rule, or rul, or r if ARGV.empty? puts usage else css_file_path = ARGV.first puts "Minifying CSS for input file: #{css_file_path}" css = File.read(css_file_path) converter = Glimmer::CSS::CSSMinifier.instance minified_css = converter.convert(css) minified_css_file_path = "#{File.basename(css_file_path, '.css')}.minified.css" File.write(minified_css_file_path, minified_css) puts "Converted output file: #{minified_css_file_path}" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
glimmer-dsl-css-1.5.2 | bin/minify_css |
glimmer-dsl-css-1.5.1 | bin/minify_css |
glimmer-dsl-css-1.5.0 | bin/minify_css |