admin管理员组文章数量:1398999
How do I target IE9 and above with grunt autoprefixer? Can I do something like the following:
grunt.config('autoprefixer', {
options: {
browsers: ['IE9+']
},
dist: {
expand: true,
src: '/styles/app.css'
}
});
How do I target IE9 and above with grunt autoprefixer? Can I do something like the following:
grunt.config('autoprefixer', {
options: {
browsers: ['IE9+']
},
dist: {
expand: true,
src: '/styles/app.css'
}
});
Share
Improve this question
asked Jul 22, 2014 at 4:21
AndrewAndrew
5,7155 gold badges37 silver badges41 bronze badges
1 Answer
Reset to default 7The syntax for the browsers
option can be found in the main Autoprefixer documentation. The relevant bits are:
Firefox >= 20
is Firefox version 20 or newer.
And:
Browsers names (case insensitive):
- ...
Explorer
orie
for Internet Explorer.
Hence, in order to target IE9 and newer, use:
options: {
browsers: ['ie >= 9']
},
本文标签: javascriptHow do I target IE9 and above with grunt autoprefixerStack Overflow
版权声明:本文标题:javascript - How do I target IE9 and above with grunt autoprefixer? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744176671a2594031.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论