mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Suggest using --in-place when converting sass2 to sass3.
This commit is contained in:
parent
0c51d7caad
commit
a68bd19ccc
2 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
||||||
* Table of contents
|
* Table of contents
|
||||||
{:toc}
|
{:toc}
|
||||||
|
|
||||||
|
## 3.0.9 (Unreleased)
|
||||||
|
|
||||||
|
* When using `sass-convert --from sass2 --to sass --recursive`,
|
||||||
|
suggest the use of `--in-place` as well.
|
||||||
|
|
||||||
## 3.0.8
|
## 3.0.8
|
||||||
|
|
||||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8).
|
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8).
|
||||||
|
|
|
@ -710,6 +710,8 @@ END
|
||||||
end
|
end
|
||||||
@options[:output] ||= @options[:input]
|
@options[:output] ||= @options[:input]
|
||||||
|
|
||||||
|
from = @options[:from]
|
||||||
|
from = :sass if from == :sass2
|
||||||
if @options[:to] == @options[:from] && !@options[:in_place]
|
if @options[:to] == @options[:from] && !@options[:in_place]
|
||||||
fmt = @options[:from]
|
fmt = @options[:from]
|
||||||
raise "Error: converting from #{fmt} to #{fmt} without --in-place"
|
raise "Error: converting from #{fmt} to #{fmt} without --in-place"
|
||||||
|
|
Loading…
Add table
Reference in a new issue