Compass filter out -moz vendor prefix

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 07:20:34

问题


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;

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.

What am I missing?


回答1:


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



来源:https://stackoverflow.com/questions/21282722/compass-filter-out-moz-vendor-prefix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!