Fixes for alpha Sass versions
This commit is contained in:
parent
c2ffa538ad
commit
044b49d83b
|
@ -6,6 +6,6 @@ Feature: Support SASS assets paths
|
|||
When I go to "/stylesheets/plain.css"
|
||||
Then I should see "color: green;"
|
||||
Then I should see "/* Works with shared SCSS assets from APPROOT/assets/stylesheets/_shared-asset.scss */"
|
||||
Then I should see "/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset.sass */"
|
||||
Then I should see "/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset-sass.sass */"
|
||||
Then I should see "font-size: 18px"
|
||||
Then I should see "/* Works with shared SASS assets from external source directory */"
|
||||
|
|
|
@ -1 +1 @@
|
|||
/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset.sass */
|
||||
/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset-sass.sass */
|
|
@ -8,7 +8,7 @@ red
|
|||
@import "_shared-asset.scss"
|
||||
|
||||
// without extension
|
||||
@import "shared-asset"
|
||||
@import "shared-asset-sass"
|
||||
|
||||
// imported from outside of local 'assets/' directory
|
||||
@import "_partial.sass"
|
||||
|
|
|
@ -31,7 +31,7 @@ module Middleman
|
|||
|
||||
class SassCompressor
|
||||
def self.compress(style, options = {})
|
||||
root_node = ::Sass::SCSS::CssParser.new(style, 'jammit-combined-input').parse
|
||||
root_node = ::Sass::SCSS::CssParser.new(style, 'middleman-css-input', 1).parse
|
||||
root_node.options = { :style => :compressed }
|
||||
root_node.render.strip
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue