Files
schisandra-cloud-storage-fr…/postcss.config.cjs
Qing c0ea4c40b0 🔧工具(deps): add unplugin-imagemin
unplugin-imagemin +
vite-plugin-imagemin -
2024-03-21 13:18:46 +08:00

22 lines
566 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//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转换
}
}
}