12345678910111213 |
- module.exports = {
- plugins: {
- // autoprefixer: {},
- "postcss-pxtorem": {
- // rootValue: 37.5, // 移动端配置为设计图宽度的十分之一,需要在main.js 引入 'lib-flexible/flexible.js' lib-flexible超过540px就不在变化
- rootValue: 16, // web端如果设计宽度为1920px 如16 px 为1rem 需要设置html font-size: calc(100vw / 120) !important
- minPixelValue: 0, //px小于0的不会被转换
- propList: [
- "*"
- ]
- }
- }
- }
|