Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SCSS:CssParser.new expects second argument of 'filename'

running jammit using the 'sass' css compressor would
fail because this method expects at least 2 arguments

see: http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#initialize-instance_method

since, at this point, it is just the combined
input for all of the files in a bundle, there is no
real filename i just called it 'jammit-combined-input'
  • Loading branch information...
commit 6f0c0969d7d00be7ec06663955620efcb814d3e2 1 parent 1ca2733
@ryankshaw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jammit/sass_compressor.rb
View
2  lib/jammit/sass_compressor.rb
@@ -10,7 +10,7 @@ def initialize(options = {})
# Compresses +css+ using sass' CSS parser, and returns the
# compressed css.
def compress(css)
- root_node = ::Sass::SCSS::CssParser.new(css).parse
+ root_node = ::Sass::SCSS::CssParser.new(css, 'jammit-combined-input').parse
root_node.options = {:style => :compressed}
root_node.render.strip
end
Please sign in to comment.
Something went wrong with that request. Please try again.