2 Star 10 Fork 0

郭同哲/vue-pc-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.postcssrc.js 700 Bytes
一键复制 编辑 原始数据 按行查看 历史
郭同哲 提交于 2023-11-06 09:10 . feat: init
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = ({ file }) => {
return {
plugins: {
"postcss-pxtorem": {
rootValue: 192, //根元素字体大小
propList: ["*"], //可以从px转换为rem的属性,匹配正则
// unitPrecision:5, //允许rem单位增长的十进制数字
// replace:true, //替换包含rems的规则,而不添加后备
// mediaQuery:false, //允许在媒体查询中转换px
// minPixelValue:0, //设置要替换的最小像素值
// selectorBlackList:[], //忽略转换正则匹配项
// exclude:/node_modules/i 要忽略并保留为px的文件路径
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/guo-tongzhe/vue-pc-template.git
git@gitee.com:guo-tongzhe/vue-pc-template.git
guo-tongzhe
vue-pc-template
vue-pc-template
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385