指南针筛选出-moz厂商preFIX [英] Compass filter out -moz vendor prefix

查看:166
本文介绍了指南针筛选出-moz厂商preFIX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用的约曼发电机角fullstack 我的项目。该SCSS支持是优秀的但是我所有的 -moz prefixes正在从CSS结果进行过滤。

Using Yeoman with generator-angular-fullstack for my project. The SCSS support is excellent however all my -moz prefixes are being filtered from the css result.

我看了看 指南针文档 改编厂商prefixes。建议考虑默认的文档瓦尔:

I've looked at the compass docs regrading Vendor Prefixes. The doc suggested to override the defaults vars:

$experimental-support-for-mozilla : true !default;
$experimental-support-for-webkit : true !default;
$support-for-original-webkit-gradients : true !default;
$experimental-support-for-opera : true !default;
$experimental-support-for-microsoft : true !default;
$experimental-support-for-khtml : true !default;

和我想这code添加到我的main.scss没有运气... MOZ prefixes仍然被删除。
我找了,没有运气的另一个配置文件。

And I tried to add this code to my main.scss with no luck ... moz prefixes are still being removed. I looked for another config file with no luck.

我是什么失踪?

推荐答案

如果您使用的是咕噜的自动prefixer繁重的任务,增加了供应商的prefixes你,所以你不需要写厂商preFIX可言。我想这也消除不必要的prefixes。可能是你应该从任务列表中删除自动prefixer(如prefixes仍然在那里,你知道它的确切),或者你reconfiger自动prefixer:的 http://github.com/ai/auto$p$pfixer#browsers

If you are using grunt-autoprefixer the grunt task adds the vendor prefixes for you, so you don't need to write a vendor prefix at all. I guess it removes also unecessary prefixes. May be you should remove autoprefixer from the task list (if the prefixes are still there you know it exactly) or you reconfiger the autoprefixer: http://github.com/ai/autoprefixer#browsers

这篇关于指南针筛选出-moz厂商preFIX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆