使用Compass Rails时的弃用警告

时间:2016-06-24 02:48:40

标签: ruby-on-rails sass compass-sass compass

我正在使用Compass gem for Rails。安装后,我使用了Compass附带的一些mixin。我在控制台中收到了弃用警告:

DEPRECATION WARNING on line 87 of /usr/local/rvm/gems/ruby-2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$moz-"#{$experimental-support-for-mozilla} "$webkit-"#{$experimental-support-for-webkit} "$opera-"#{$experimental-support-for-opera} "$microsoft-"#{$experimental-support-for-microsoft} "$khtml-"#{$experimental-support-for-khtml}')

You can use the sass-convert command to automatically fix most cases.

我无法在网上找到此修复程序。这个警告意味着什么,我该怎么做才能解决它?

1 个答案:

答案 0 :(得分:2)

显然这是宝石中的一个错误。解决方法直到将修复程序推送到gem:https://github.com/Compass/compass/pull/2088