1 Star 0 Fork 1

hou2015/discounts-upgrade

forked from vpcp/discounts-upgrade 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
postcss.config.js 706 Bytes
一键复制 编辑 原始数据 按行查看 历史
anger 提交于 2022-05-24 15:10 . init project
module.exports = {
plugins: {
'postcss-px-to-viewport-update': {
unitToConvert: 'px',
viewportWidth: 375, //按设计稿宽度750像素来切图
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
// exclude: [/src/], //忽略某些文件夹下的文件
include: [
/[\\/]src[\\/]views[\\/]mobile[\\/]/,
/[\\/]src[\\/]mobileComponents[\\/]/,
/[\\/]node_modules[\\/]vant[\\/]/
], //[/\/src\/views\/mobile\//]
landscape: false,
landscapeUnit: 'vw',
landscapeWidth: 568
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hou2015/discounts-upgrade.git
[email protected]:hou2015/discounts-upgrade.git
hou2015
discounts-upgrade
discounts-upgrade
master

搜索帮助