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
|
||||
{: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
|
||||
|
||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8).
|
||||
|
|
|
@ -710,6 +710,8 @@ END
|
|||
end
|
||||
@options[:output] ||= @options[:input]
|
||||
|
||||
from = @options[:from]
|
||||
from = :sass if from == :sass2
|
||||
if @options[:to] == @options[:from] && !@options[:in_place]
|
||||
fmt = @options[:from]
|
||||
raise "Error: converting from #{fmt} to #{fmt} without --in-place"
|
||||
|
|
Loading…
Add table
Reference in a new issue