【发布时间】:2016-07-21 04:06:50
【问题描述】:
当我尝试像往常一样在项目上运行“bundle exec compass watch”时,我现在收到了这个警告:
DEPRECATION WARNING on line 87 of /home/hedy/Sites/mywebsite.fr/src/vendor/bundle/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.
DEPRECATION WARNING on line 92 of /home/hedy/Sites/mywebsite.fr/src/vendor/bundle/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('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')
You can use the sass-convert command to automatically fix most cases.
每个 gem 都是最新的,我不知道如何删除这个警告...
【问题讨论】:
-
这应该是你可以忽略的。您可以尝试升级到 alpha 版本,看看是否可以为您解决问题(例如
gem install compass --pre)。弃用警告仅在 Sass 3.4.20 中出现;降级到 3.4.19 也会消除警告。 -
嗯,我已经有 sass 3.4.19,我正在使用 bundler
-
如果我执行“bundle exec compass compile”,则没有警告!问题只出现在观看过程中...