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'
}
});
该browsers
选项的语法可以在主要的Autoprefixer 文档中找到。相关位是:
Firefox >= 20
是 Firefox 版本 20 或更高版本。
和:
浏览器名称(不区分大小写):
- ...
Explorer
或ie
Internet Explorer。
因此,为了针对 IE9 和更新版本,请使用:
options: {
browsers: ['ie >= 9']
},