vscode插件之autoprefixer最新版的配置
在 autoprefixer2.x版本的时候,如下配置即可自动加css前缀"autoprefixer.formatOnSave": true,"autoprefixer.browsers": ["last 2 versions","> 5%"],大致效果如下升级 autoprefixer到最新版的时候,发现配置项变黑了,说明更新了需要换成//保存自动给css添加前缀"autoprefixer
·
在 autoprefixer2.x
版本的时候,如下配置即可自动加css前缀
"autoprefixer.formatOnSave": true,
"autoprefixer.browsers": [
"last 2 versions",
"> 5%"
],
大致效果如下
升级 autoprefixer
到最新版的时候,发现配置项变黑了,说明更新了
需要换成
//保存自动给css添加前缀
"autoprefixer.formatOnSave": true,
"autoprefixer.options": {
// 定义浏览器参数
"overrideBrowserslist": [
"last 2 versions",
"> 5%"
],
// 是否添加浏览器前缀,默认:true
"cascade": true,
// 是否移除不必要的浏览器前缀,默认:true
"remove": true
},
更多推荐
所有评论(0)