1 Star 0 Fork 1

chuchur / kui-vue-mobile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
postcss.config.js 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
chuchur 提交于 2020-11-26 16:08 . 增加rem 单位布局
module.exports = {
// You can specify any options from http://api.postcss.org/global.html#processOptions here
// parser: 'sugarss',
plugins: [
// ['postcss-px-to-viewport', {
// viewportWidth: 750, // 视窗的宽度,对应的是我们设计稿的宽度,一般是750
// viewportHeight: 1334, // 视窗的高度,根据750设备的宽度来指定,一般指定1334,也可以不配置
// unitPrecision: 3, // 指定`px`转换为视窗单位值的小数位数(很多时候无法整除)
// viewportUnit: 'vw', // 指定需要转换成的视窗单位,建议使用vw
// selectorBlackList: ['.ignore', '.hairlines'], // 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
// minPixelValue: 1, // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
// mediaQuery: false // 允许在媒体查询中转换`px`
// }],
// require('postcss-px2rem')({ remUnit: 75 }),
require('autoprefixer')()
],
};
JavaScript
1
https://gitee.com/chuchur/kui-vue-mobile.git
git@gitee.com:chuchur/kui-vue-mobile.git
chuchur
kui-vue-mobile
kui-vue-mobile
master

搜索帮助