mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Use SCSS syntax when compiling things with extension .scss from the command line.
This commit is contained in:
parent
bbb000f13b
commit
a8f3fa012b
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ END
|
|||
input = @options[:input]
|
||||
output = @options[:output]
|
||||
|
||||
@options[:syntax] ||= :scss if input.is_a?(File) && input.path =~ /\.scss$/
|
||||
tree =
|
||||
if input.is_a?(File) && !@options[:check_syntax]
|
||||
::Sass::Files.tree_for(input.path, @options[:for_engine])
|
||||
|
|
Loading…
Add table
Reference in a new issue