🔧工具(deps): add unplugin-imagemin
unplugin-imagemin + vite-plugin-imagemin -
This commit is contained in:
21
postcss.config.cjs
Normal file
21
postcss.config.cjs
Normal file
@@ -0,0 +1,21 @@
|
||||
//postcss.config.cjs
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {
|
||||
overrideBrowserslist: [
|
||||
'Android 4.1',
|
||||
'iOS 7.1',
|
||||
'Chrome > 31',
|
||||
'ff > 31',
|
||||
'ie >= 8',
|
||||
'last 10 versions' // 所有主流浏览器最近10版本用
|
||||
],
|
||||
grid: true
|
||||
},
|
||||
'postcss-pxtorem': {
|
||||
rootValue: 192, // 设计稿宽度的1/ 10 例如设计稿按照 1920设计 此处就为192
|
||||
propList: ['*', '!border'], // 除 border 外所有px 转 rem
|
||||
selectorBlackList: ['.el-'] // 过滤掉.el-开头的class,不进行rem转换
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user