指南针过滤掉 -moz 供应商前缀 [英] Compass filter out -moz vendor prefix

查看:28
本文介绍了指南针过滤掉 -moz 供应商前缀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中使用 Yeomangenerator-angular-fullstack.SCSS 支持非常好,但是我所有的 -moz 前缀都从 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.

我查看了指南针文档重新分级供应商前缀.该文档建议覆盖默认变量:

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;

我尝试将此代码添加到我的 main.scss 中,但没有成功... moz 前缀仍在被删除.我找了另一个配置文件,但没有运气.

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.

我错过了什么?

推荐答案

如果您使用 grunt-autoprefixer,grunt 任务会为您添加供应商前缀,因此您根本不需要编写供应商前缀.我想它也删除了不必要的前缀.也许您应该从任务列表中删除 autoprefixer(如果前缀仍然存在,您完全知道它)或者您重新配置 autoprefixer:http://github.com/ai/autoprefixer#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 供应商前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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