Sha256: 674f2e9b4d362dff3e9ec6cc26f63586834469d478cadcb2af52dd0f5e745980

Contents?: true

Size: 844 Bytes

Versions: 6

Compression:

Stored size: 844 Bytes

Contents

<%
# template for single-file csso lib

def file(filename)
  File.read(filename).strip
end

def version package
  require 'json'
  JSON.parse(File.read(package))['version']
end

%>/*
<%= " THIS FILE IS AUTOGENERATED! DO NOT EDIT!\n See #{__FILE__} instead." %>

 Based on <%= version 'csso/package.json' %> revision <%= file 'csso/.git/refs/heads/master' %>
*/

console = {
  log: function(){},
  error: function(txt){
    throw txt;
  }
};

<%= file 'csso/dist/csso-browser.js' %>

do_compression = function(css, structural){
   return csso.minify(css, {
        restructure: structural
    }).css;
};

do_compression_with_map = function(css, filename, structural){
   var result = csso.minify(css, {
        restructure: structural,
        filename: filename,
        sourceMap: true
    });
  return [result.css, result.map.toString()];
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
csso-rails-0.8.2 lib/csso/csso.js.erb
csso-rails-0.8.1 lib/csso/csso.js.erb
csso-rails-0.8.0 lib/csso/csso.js.erb
csso-rails-0.7.1 lib/csso/csso.js.erb
csso-rails-0.7.0 lib/csso/csso.js.erb
csso-rails-0.6.0 lib/csso/csso.js.erb